Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/v0.10' into v0.12
Browse files Browse the repository at this point in the history
Conflicts:
	deps/v8/src/debug-debugger.js
	deps/v8/src/mirror-debugger.js
	deps/v8/src/platform-freebsd.cc
	deps/v8/src/platform-linux.cc
	deps/v8/src/platform-macos.cc
	deps/v8/src/platform-openbsd.cc
	deps/v8/src/platform-posix.cc
	deps/v8/src/platform-solaris.cc
	deps/v8/tools/gyp/v8.gyp
  • Loading branch information
Julien Gilli committed Jan 13, 2015
2 parents 21c2636 + 31051e5 commit fbfe562
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
5 changes: 2 additions & 3 deletions deps/v8/src/base/platform/platform-posix.cc
Expand Up @@ -608,9 +608,8 @@ void Thread::Join() {


void Thread::YieldCPU() {
int result = sched_yield();
DCHECK_EQ(0, result);
USE(result);
const timespec delay = { 0, 1 };
nanosleep(&delay, NULL);
}


Expand Down
5 changes: 2 additions & 3 deletions deps/v8/src/debug-debugger.js
@@ -1,7 +1,6 @@
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
"use strict";

// Default number of frames to include in the response to backtrace request.
var kDefaultBacktraceLength = 10;
Expand Down Expand Up @@ -671,7 +670,7 @@ Debug.setBreakPointByScriptIdAndPosition = function(script_id, position,
condition, enabled,
opt_position_alignment)
{
var break_point = MakeBreakPoint(position);
break_point = MakeBreakPoint(position);
break_point.setCondition(condition);
if (!enabled) {
break_point.disable();
Expand Down Expand Up @@ -738,7 +737,7 @@ Debug.clearBreakPoint = function(break_point_number) {

Debug.clearAllBreakPoints = function() {
for (var i = 0; i < break_points.length; i++) {
var break_point = break_points[i];
break_point = break_points[i];
%ClearBreakPoint(break_point);
}
break_points = [];
Expand Down
9 changes: 4 additions & 5 deletions deps/v8/src/mirror-debugger.js
@@ -1,7 +1,6 @@
// Copyright 2006-2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
"use strict";

// Handle id counters.
var next_handle_ = 0;
Expand Down Expand Up @@ -45,7 +44,7 @@ function MakeMirror(value, opt_transient) {

// Look for non transient mirrors in the mirror cache.
if (!opt_transient && mirror_cache_enabled_) {
for (var id in mirror_cache_) {
for (id in mirror_cache_) {
mirror = mirror_cache_[id];
if (mirror.value() === value) {
return mirror;
Expand Down Expand Up @@ -1247,11 +1246,11 @@ ErrorMirror.prototype.toText = function() {
// Use the same text representation as in messages.js.
var text;
try {
text = %_CallFunction(this.value_, builtins.ErrorToString);
str = %_CallFunction(this.value_, builtins.ErrorToString);
} catch (e) {
text = '#<Error>';
str = '#<Error>';
}
return text;
return str;
};


Expand Down
2 changes: 1 addition & 1 deletion deps/v8/tools/gyp/v8.gyp
Expand Up @@ -1250,7 +1250,7 @@
['OS=="solaris"', {
'link_settings': {
'libraries': [
'-lnsl',
'-lnsl -lrt',
]},
'sources': [
'../../src/base/platform/platform-solaris.cc',
Expand Down

0 comments on commit fbfe562

Please sign in to comment.