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

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

Issue 1368753003: Add C++ implementation of Object.defineProperties (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: make compilers happy Created 5 years, 2 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') | tools/gyp/v8.gyp » ('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 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 1604
1605 1605
1606 RUNTIME_FUNCTION(Runtime_IsAccessCheckNeeded) { 1606 RUNTIME_FUNCTION(Runtime_IsAccessCheckNeeded) {
1607 SealHandleScope shs(isolate); 1607 SealHandleScope shs(isolate);
1608 DCHECK_EQ(1, args.length()); 1608 DCHECK_EQ(1, args.length());
1609 CONVERT_ARG_CHECKED(Object, object, 0); 1609 CONVERT_ARG_CHECKED(Object, object, 0);
1610 return isolate->heap()->ToBoolean(object->IsAccessCheckNeeded()); 1610 return isolate->heap()->ToBoolean(object->IsAccessCheckNeeded());
1611 } 1611 }
1612 1612
1613 1613
1614 RUNTIME_FUNCTION(Runtime_ObjectDefineProperty) {
1615 HandleScope scope(isolate);
1616 DCHECK(args.length() == 3);
1617 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0);
1618 CONVERT_ARG_HANDLE_CHECKED(Object, name, 1);
1619 CONVERT_ARG_HANDLE_CHECKED(Object, attributes, 2);
1620 return JSReceiver::DefineProperty(isolate, o, name, attributes);
1621 }
1622
1623
1624 RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) {
1625 HandleScope scope(isolate);
1626 DCHECK(args.length() == 2);
1627 CONVERT_ARG_HANDLE_CHECKED(Object, o, 0);
1628 CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1);
1629 return JSReceiver::DefineProperties(isolate, o, properties);
1630 }
1614 } // namespace internal 1631 } // namespace internal
1615 } // namespace v8 1632 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698