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

Side by Side Diff: src/isolate.h

Issue 1281833002: Rewrite Error.prototype.toString in C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comments Created 5 years, 4 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/heap/heap.h ('k') | src/messages.h » ('j') | src/messages.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef V8_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
11 #include "include/v8-debug.h" 11 #include "include/v8-debug.h"
12 #include "src/allocation.h" 12 #include "src/allocation.h"
13 #include "src/assert-scope.h" 13 #include "src/assert-scope.h"
14 #include "src/base/atomicops.h" 14 #include "src/base/atomicops.h"
15 #include "src/builtins.h" 15 #include "src/builtins.h"
16 #include "src/cancelable-task.h" 16 #include "src/cancelable-task.h"
17 #include "src/contexts.h" 17 #include "src/contexts.h"
18 #include "src/date.h" 18 #include "src/date.h"
19 #include "src/execution.h" 19 #include "src/execution.h"
20 #include "src/frames.h" 20 #include "src/frames.h"
21 #include "src/futex-emulation.h" 21 #include "src/futex-emulation.h"
22 #include "src/global-handles.h" 22 #include "src/global-handles.h"
23 #include "src/handles.h" 23 #include "src/handles.h"
24 #include "src/hashmap.h" 24 #include "src/hashmap.h"
25 #include "src/heap/heap.h" 25 #include "src/heap/heap.h"
26 #include "src/messages.h"
26 #include "src/optimizing-compile-dispatcher.h" 27 #include "src/optimizing-compile-dispatcher.h"
27 #include "src/regexp-stack.h" 28 #include "src/regexp-stack.h"
28 #include "src/runtime/runtime.h" 29 #include "src/runtime/runtime.h"
29 #include "src/runtime-profiler.h" 30 #include "src/runtime-profiler.h"
30 #include "src/zone.h" 31 #include "src/zone.h"
31 32
32 namespace v8 { 33 namespace v8 {
33 34
34 namespace base { 35 namespace base {
35 class RandomNumberGenerator; 36 class RandomNumberGenerator;
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 return date_cache_; 988 return date_cache_;
988 } 989 }
989 990
990 void set_date_cache(DateCache* date_cache) { 991 void set_date_cache(DateCache* date_cache) {
991 if (date_cache != date_cache_) { 992 if (date_cache != date_cache_) {
992 delete date_cache_; 993 delete date_cache_;
993 } 994 }
994 date_cache_ = date_cache; 995 date_cache_ = date_cache;
995 } 996 }
996 997
998 ErrorToStringHelper* error_tostring_helper() {
999 return &error_tostring_helper_;
1000 }
1001
997 Map* get_initial_js_array_map(ElementsKind kind, 1002 Map* get_initial_js_array_map(ElementsKind kind,
998 Strength strength = Strength::WEAK); 1003 Strength strength = Strength::WEAK);
999 1004
1000 static const int kArrayProtectorValid = 1; 1005 static const int kArrayProtectorValid = 1;
1001 static const int kArrayProtectorInvalid = 0; 1006 static const int kArrayProtectorInvalid = 0;
1002 1007
1003 bool IsFastArrayConstructorPrototypeChainIntact(); 1008 bool IsFastArrayConstructorPrototypeChainIntact();
1004 1009
1005 // On intent to set an element in object, make sure that appropriate 1010 // On intent to set an element in object, make sure that appropriate
1006 // notifications occur if the set is on the elements of the array or 1011 // notifications occur if the set is on the elements of the array or
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 ThreadManager* thread_manager_; 1292 ThreadManager* thread_manager_;
1288 RuntimeState runtime_state_; 1293 RuntimeState runtime_state_;
1289 Builtins builtins_; 1294 Builtins builtins_;
1290 bool has_installed_extensions_; 1295 bool has_installed_extensions_;
1291 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; 1296 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_;
1292 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; 1297 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_;
1293 unibrow::Mapping<unibrow::Ecma262Canonicalize> 1298 unibrow::Mapping<unibrow::Ecma262Canonicalize>
1294 regexp_macro_assembler_canonicalize_; 1299 regexp_macro_assembler_canonicalize_;
1295 RegExpStack* regexp_stack_; 1300 RegExpStack* regexp_stack_;
1296 DateCache* date_cache_; 1301 DateCache* date_cache_;
1302 ErrorToStringHelper error_tostring_helper_;
1297 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; 1303 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
1298 CallInterfaceDescriptorData* call_descriptor_data_; 1304 CallInterfaceDescriptorData* call_descriptor_data_;
1299 base::RandomNumberGenerator* random_number_generator_; 1305 base::RandomNumberGenerator* random_number_generator_;
1300 // TODO(hpayer): Remove the following store buffer addresses. 1306 // TODO(hpayer): Remove the following store buffer addresses.
1301 uintptr_t* store_buffer_hash_set_1_address_; 1307 uintptr_t* store_buffer_hash_set_1_address_;
1302 uintptr_t* store_buffer_hash_set_2_address_; 1308 uintptr_t* store_buffer_hash_set_2_address_;
1303 1309
1304 // Whether the isolate has been created for snapshotting. 1310 // Whether the isolate has been created for snapshotting.
1305 bool serializer_enabled_; 1311 bool serializer_enabled_;
1306 1312
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 } 1603 }
1598 1604
1599 EmbeddedVector<char, 128> filename_; 1605 EmbeddedVector<char, 128> filename_;
1600 FILE* file_; 1606 FILE* file_;
1601 int scope_depth_; 1607 int scope_depth_;
1602 }; 1608 };
1603 1609
1604 } } // namespace v8::internal 1610 } } // namespace v8::internal
1605 1611
1606 #endif // V8_ISOLATE_H_ 1612 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/messages.h » ('j') | src/messages.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698