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

Side by Side Diff: src/runtime/runtime-object.cc

Issue 1010673004: Tweak the TurboFan pipeline for stub compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed feedback Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-strings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/runtime/runtime.h" 10 #include "src/runtime/runtime.h"
(...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 SealHandleScope shs(isolate); 1490 SealHandleScope shs(isolate);
1491 DCHECK(args.length() == 2); 1491 DCHECK(args.length() == 2);
1492 CONVERT_ARG_CHECKED(Object, obj, 0); 1492 CONVERT_ARG_CHECKED(Object, obj, 0);
1493 CONVERT_ARG_CHECKED(Object, value, 1); 1493 CONVERT_ARG_CHECKED(Object, value, 1);
1494 if (!obj->IsJSValue()) return value; 1494 if (!obj->IsJSValue()) return value;
1495 JSValue::cast(obj)->set_value(value); 1495 JSValue::cast(obj)->set_value(value);
1496 return value; 1496 return value;
1497 } 1497 }
1498 1498
1499 1499
1500 RUNTIME_FUNCTION(Runtime_JSValueGetValue) {
1501 SealHandleScope shs(isolate);
1502 DCHECK(args.length() == 1);
1503 CONVERT_ARG_CHECKED(JSValue, obj, 0);
1504 return JSValue::cast(obj)->value();
1505 }
1506
1507
1500 RUNTIME_FUNCTION(Runtime_ObjectEquals) { 1508 RUNTIME_FUNCTION(Runtime_ObjectEquals) {
1501 SealHandleScope shs(isolate); 1509 SealHandleScope shs(isolate);
1502 DCHECK(args.length() == 2); 1510 DCHECK(args.length() == 2);
1503 CONVERT_ARG_CHECKED(Object, obj1, 0); 1511 CONVERT_ARG_CHECKED(Object, obj1, 0);
1504 CONVERT_ARG_CHECKED(Object, obj2, 1); 1512 CONVERT_ARG_CHECKED(Object, obj2, 1);
1505 return isolate->heap()->ToBoolean(obj1 == obj2); 1513 return isolate->heap()->ToBoolean(obj1 == obj2);
1506 } 1514 }
1507 1515
1508 1516
1509 RUNTIME_FUNCTION(Runtime_IsObject) { 1517 RUNTIME_FUNCTION(Runtime_IsObject) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); 1579 CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3);
1572 1580
1573 RETURN_FAILURE_ON_EXCEPTION( 1581 RETURN_FAILURE_ON_EXCEPTION(
1574 isolate, 1582 isolate,
1575 JSObject::DefineAccessor(object, name, isolate->factory()->null_value(), 1583 JSObject::DefineAccessor(object, name, isolate->factory()->null_value(),
1576 setter, attrs)); 1584 setter, attrs));
1577 return isolate->heap()->undefined_value(); 1585 return isolate->heap()->undefined_value();
1578 } 1586 }
1579 } 1587 }
1580 } // namespace v8::internal 1588 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698