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

Side by Side Diff: src/isolate.cc

Issue 1428793002: Reland v8::Private and related APIs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 2566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2577 2577
2578 Handle<JSObject> Isolate::GetSymbolRegistry() { 2578 Handle<JSObject> Isolate::GetSymbolRegistry() {
2579 if (heap()->symbol_registry()->IsSmi()) { 2579 if (heap()->symbol_registry()->IsSmi()) {
2580 Handle<Map> map = factory()->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); 2580 Handle<Map> map = factory()->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
2581 Handle<JSObject> registry = factory()->NewJSObjectFromMap(map); 2581 Handle<JSObject> registry = factory()->NewJSObjectFromMap(map);
2582 heap()->set_symbol_registry(*registry); 2582 heap()->set_symbol_registry(*registry);
2583 2583
2584 SetUpSubregistry(registry, map, "for"); 2584 SetUpSubregistry(registry, map, "for");
2585 SetUpSubregistry(registry, map, "for_api"); 2585 SetUpSubregistry(registry, map, "for_api");
2586 SetUpSubregistry(registry, map, "keyFor"); 2586 SetUpSubregistry(registry, map, "keyFor");
2587 SetUpSubregistry(registry, map, "private_api");
2587 } 2588 }
2588 return Handle<JSObject>::cast(factory()->symbol_registry()); 2589 return Handle<JSObject>::cast(factory()->symbol_registry());
2589 } 2590 }
2590 2591
2591 2592
2592 void Isolate::AddCallCompletedCallback(CallCompletedCallback callback) { 2593 void Isolate::AddCallCompletedCallback(CallCompletedCallback callback) {
2593 for (int i = 0; i < call_completed_callbacks_.length(); i++) { 2594 for (int i = 0; i < call_completed_callbacks_.length(); i++) {
2594 if (callback == call_completed_callbacks_.at(i)) return; 2595 if (callback == call_completed_callbacks_.at(i)) return;
2595 } 2596 }
2596 call_completed_callbacks_.Add(callback); 2597 call_completed_callbacks_.Add(callback);
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
2850 // Then check whether this scope intercepts. 2851 // Then check whether this scope intercepts.
2851 if ((flag & intercept_mask_)) { 2852 if ((flag & intercept_mask_)) {
2852 intercepted_flags_ |= flag; 2853 intercepted_flags_ |= flag;
2853 return true; 2854 return true;
2854 } 2855 }
2855 return false; 2856 return false;
2856 } 2857 }
2857 2858
2858 } // namespace internal 2859 } // namespace internal
2859 } // namespace v8 2860 } // namespace v8
OLDNEW
« include/v8.h ('K') | « src/heap/heap.cc ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698