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

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

Issue 1558433002: [runtime] Migrate Object.create to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Camillos comment. Created 4 years, 11 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/objects.cc ('k') | no next file » | 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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 CONVERT_ARG_HANDLE_CHECKED(Object, attributes, 2); 1408 CONVERT_ARG_HANDLE_CHECKED(Object, attributes, 2);
1409 return JSReceiver::DefineProperty(isolate, o, name, attributes); 1409 return JSReceiver::DefineProperty(isolate, o, name, attributes);
1410 } 1410 }
1411 1411
1412 1412
1413 RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) { 1413 RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) {
1414 HandleScope scope(isolate); 1414 HandleScope scope(isolate);
1415 DCHECK(args.length() == 2); 1415 DCHECK(args.length() == 2);
1416 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); 1416 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0);
1417 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1); 1417 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1);
1418 return JSReceiver::DefineProperties(isolate, o, properties); 1418 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
1419 isolate, o, JSReceiver::DefineProperties(isolate, o, properties));
1420 return *o;
1419 } 1421 }
1422
1420 } // namespace internal 1423 } // namespace internal
1421 } // namespace v8 1424 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698