Skip to content

Commit cbc1262

Browse files
committed
deps: upgrade v8 to 4.1.0.14
PR-URL: #656 Reviewed-By: Fedor Indutny <[email protected]>
1 parent 00f822f commit cbc1262

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

deps/v8/src/compiler/representation-change.h

+7
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ class RepresentationChanger {
296296
if (value == 0 || value == 1) return node;
297297
return jsgraph()->Int32Constant(1); // value != 0
298298
}
299+
case IrOpcode::kNumberConstant: {
300+
double value = OpParameter<double>(node);
301+
if (std::isnan(value) || value == 0.0) {
302+
return jsgraph()->Int32Constant(0);
303+
}
304+
return jsgraph()->Int32Constant(1);
305+
}
299306
case IrOpcode::kHeapConstant: {
300307
Handle<Object> handle = OpParameter<Unique<Object> >(node).handle();
301308
DCHECK(*handle == isolate()->heap()->true_value() ||

deps/v8/src/version.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#define MAJOR_VERSION 4
3636
#define MINOR_VERSION 1
3737
#define BUILD_NUMBER 0
38-
#define PATCH_LEVEL 12
38+
#define PATCH_LEVEL 14
3939
// Use 1 for candidates and 0 otherwise.
4040
// (Boolean macro values are not supported by all preprocessors.)
4141
#define IS_CANDIDATE_VERSION 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2015 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
var stdlib = this;
6+
var buffer = new ArrayBuffer(64 * 1024);
7+
var foreign = {}
8+
9+
var foo = (function Module(stdlib, foreign, heap) {
10+
"use asm";
11+
function foo(i) {
12+
return !(i ? 1 : false);
13+
}
14+
return {foo:foo};
15+
})(stdlib, foreign, buffer).foo;
16+
17+
assertFalse(foo(1));

0 commit comments

Comments
 (0)