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

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

Issue 1352023002: Version 4.5.103.34 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.5
Patch Set: Created 5 years, 3 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/test-object-observe.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/messages.h" 10 #include "src/messages.h"
(...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); 1428 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1);
1429 CONVERT_ARG_HANDLE_CHECKED(JSFunction, setter, 2); 1429 CONVERT_ARG_HANDLE_CHECKED(JSFunction, setter, 2);
1430 CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); 1430 CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3);
1431 1431
1432 RETURN_FAILURE_ON_EXCEPTION( 1432 RETURN_FAILURE_ON_EXCEPTION(
1433 isolate, 1433 isolate,
1434 JSObject::DefineAccessor(object, name, isolate->factory()->null_value(), 1434 JSObject::DefineAccessor(object, name, isolate->factory()->null_value(),
1435 setter, attrs)); 1435 setter, attrs));
1436 return isolate->heap()->undefined_value(); 1436 return isolate->heap()->undefined_value();
1437 } 1437 }
1438
1439
1440 RUNTIME_FUNCTION(Runtime_IsAccessCheckNeeded) {
1441 SealHandleScope shs(isolate);
1442 DCHECK_EQ(1, args.length());
1443 CONVERT_ARG_CHECKED(Object, object, 0);
1444 return isolate->heap()->ToBoolean(object->IsAccessCheckNeeded());
1445 }
1438 } // namespace internal 1446 } // namespace internal
1439 } // namespace v8 1447 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/test-object-observe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698