Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(730)

Unified Diff: src/v8natives.js

Issue 1275013004: [runtime] Simplify TO_INT32/TO_UINT32 abstract operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-numbers.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 542d709663e6205f29a743400ecf7b04e4205ca7..29481d103eff888891e5d30ff20e8a0511c9e114 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -803,7 +803,7 @@ function DefineObjectProperty(obj, p, desc, should_throw) {
function DefineArrayProperty(obj, p, desc, should_throw) {
// Step 3 - Special handling for array index.
if (!IS_SYMBOL(p)) {
- var index = $toUint32(p);
+ var index = TO_UINT32(p);
var emit_splice = false;
if ($toString(index) == p && index != 4294967295) {
var length = obj.length;
@@ -899,7 +899,7 @@ function ToNameArray(obj, trap, includeSymbols) {
if (!IS_SPEC_OBJECT(obj)) {
throw MakeTypeError(kProxyNonObjectPropNames, trap, obj);
}
- var n = $toUint32(obj.length);
+ var n = TO_UINT32(obj.length);
var array = new GlobalArray(n);
var realLength = 0;
var names = { __proto__: null }; // TODO(rossberg): use sets once ready.
« no previous file with comments | « src/runtime/runtime-numbers.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698