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

Side by Side Diff: src/bootstrapper.cc

Issue 2695933005: [debugger] extend side effect free debug-evaluate to Array builtins. (Closed)
Patch Set: fix Created 3 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 | « no previous file | src/debug/debug-evaluate.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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3543 matching lines...) Expand 10 before | Expand all | Expand 10 after
3554 factory->NewStringFromAsciiChecked("prototype"), 3554 factory->NewStringFromAsciiChecked("prototype"),
3555 LookupIterator::OWN_SKIP_INTERCEPTOR); 3555 LookupIterator::OWN_SKIP_INTERCEPTOR);
3556 Handle<Object> array_prototype = Object::GetProperty(&it2).ToHandleChecked(); 3556 Handle<Object> array_prototype = Object::GetProperty(&it2).ToHandleChecked();
3557 LookupIterator it3(array_prototype, 3557 LookupIterator it3(array_prototype,
3558 factory->NewStringFromAsciiChecked("forEach"), 3558 factory->NewStringFromAsciiChecked("forEach"),
3559 LookupIterator::OWN_SKIP_INTERCEPTOR); 3559 LookupIterator::OWN_SKIP_INTERCEPTOR);
3560 Handle<Object> for_each_function = 3560 Handle<Object> for_each_function =
3561 Object::GetProperty(&it3).ToHandleChecked(); 3561 Object::GetProperty(&it3).ToHandleChecked();
3562 Handle<JSFunction>::cast(for_each_function) 3562 Handle<JSFunction>::cast(for_each_function)
3563 ->set_code(isolate->builtins()->builtin(Builtins::kArrayForEach)); 3563 ->set_code(isolate->builtins()->builtin(Builtins::kArrayForEach));
3564 Handle<JSFunction>::cast(for_each_function)
3565 ->shared()
3566 ->set_code(isolate->builtins()->builtin(Builtins::kArrayForEach));
3564 } 3567 }
3565 3568
3566 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { 3569 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() {
3567 if (!FLAG_harmony_sharedarraybuffer) return; 3570 if (!FLAG_harmony_sharedarraybuffer) return;
3568 3571
3569 Handle<JSGlobalObject> global(native_context()->global_object()); 3572 Handle<JSGlobalObject> global(native_context()->global_object());
3570 Isolate* isolate = global->GetIsolate(); 3573 Isolate* isolate = global->GetIsolate();
3571 Factory* factory = isolate->factory(); 3574 Factory* factory = isolate->factory();
3572 3575
3573 Handle<JSFunction> shared_array_buffer_fun = 3576 Handle<JSFunction> shared_array_buffer_fun =
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
4998 } 5001 }
4999 5002
5000 5003
5001 // Called when the top-level V8 mutex is destroyed. 5004 // Called when the top-level V8 mutex is destroyed.
5002 void Bootstrapper::FreeThreadResources() { 5005 void Bootstrapper::FreeThreadResources() {
5003 DCHECK(!IsActive()); 5006 DCHECK(!IsActive());
5004 } 5007 }
5005 5008
5006 } // namespace internal 5009 } // namespace internal
5007 } // namespace v8 5010 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug-evaluate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698