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

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

Issue 1692193002: [runtime] Remove obsolete %ObjectEquals runtime entry. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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') | test/cctest/compiler/test-run-intrinsics.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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.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/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 956
957 957
958 RUNTIME_FUNCTION(Runtime_JSValueGetValue) { 958 RUNTIME_FUNCTION(Runtime_JSValueGetValue) {
959 SealHandleScope shs(isolate); 959 SealHandleScope shs(isolate);
960 DCHECK(args.length() == 1); 960 DCHECK(args.length() == 1);
961 CONVERT_ARG_CHECKED(JSValue, obj, 0); 961 CONVERT_ARG_CHECKED(JSValue, obj, 0);
962 return JSValue::cast(obj)->value(); 962 return JSValue::cast(obj)->value();
963 } 963 }
964 964
965 965
966 RUNTIME_FUNCTION(Runtime_ObjectEquals) {
967 SealHandleScope shs(isolate);
968 DCHECK(args.length() == 2);
969 CONVERT_ARG_CHECKED(Object, obj1, 0);
970 CONVERT_ARG_CHECKED(Object, obj2, 1);
971 return isolate->heap()->ToBoolean(obj1 == obj2);
972 }
973
974
975 RUNTIME_FUNCTION(Runtime_IsJSReceiver) { 966 RUNTIME_FUNCTION(Runtime_IsJSReceiver) {
976 SealHandleScope shs(isolate); 967 SealHandleScope shs(isolate);
977 DCHECK(args.length() == 1); 968 DCHECK(args.length() == 1);
978 CONVERT_ARG_CHECKED(Object, obj, 0); 969 CONVERT_ARG_CHECKED(Object, obj, 0);
979 return isolate->heap()->ToBoolean(obj->IsJSReceiver()); 970 return isolate->heap()->ToBoolean(obj->IsJSReceiver());
980 } 971 }
981 972
982 973
983 RUNTIME_FUNCTION(Runtime_IsStrong) { 974 RUNTIME_FUNCTION(Runtime_IsStrong) {
984 SealHandleScope shs(isolate); 975 SealHandleScope shs(isolate);
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 DCHECK(args.length() == 2); 1296 DCHECK(args.length() == 2);
1306 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); 1297 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0);
1307 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1); 1298 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1);
1308 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 1299 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
1309 isolate, o, JSReceiver::DefineProperties(isolate, o, properties)); 1300 isolate, o, JSReceiver::DefineProperties(isolate, o, properties));
1310 return *o; 1301 return *o;
1311 } 1302 }
1312 1303
1313 } // namespace internal 1304 } // namespace internal
1314 } // namespace v8 1305 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/compiler/test-run-intrinsics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698