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

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: fix test case 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') | no next file with comments »
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 ThreadManager* thread_manager_; 1294 ThreadManager* thread_manager_;
1290 RuntimeState runtime_state_; 1295 RuntimeState runtime_state_;
1291 Builtins builtins_; 1296 Builtins builtins_;
1292 bool has_installed_extensions_; 1297 bool has_installed_extensions_;
1293 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; 1298 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_;
1294 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; 1299 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_;
1295 unibrow::Mapping<unibrow::Ecma262Canonicalize> 1300 unibrow::Mapping<unibrow::Ecma262Canonicalize>
1296 regexp_macro_assembler_canonicalize_; 1301 regexp_macro_assembler_canonicalize_;
1297 RegExpStack* regexp_stack_; 1302 RegExpStack* regexp_stack_;
1298 DateCache* date_cache_; 1303 DateCache* date_cache_;
1304 ErrorToStringHelper error_tostring_helper_;
1299 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; 1305 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
1300 CallInterfaceDescriptorData* call_descriptor_data_; 1306 CallInterfaceDescriptorData* call_descriptor_data_;
1301 base::RandomNumberGenerator* random_number_generator_; 1307 base::RandomNumberGenerator* random_number_generator_;
1302 // TODO(hpayer): Remove the following store buffer addresses. 1308 // TODO(hpayer): Remove the following store buffer addresses.
1303 uintptr_t* store_buffer_hash_set_1_address_; 1309 uintptr_t* store_buffer_hash_set_1_address_;
1304 uintptr_t* store_buffer_hash_set_2_address_; 1310 uintptr_t* store_buffer_hash_set_2_address_;
1305 1311
1306 // Whether the isolate has been created for snapshotting. 1312 // Whether the isolate has been created for snapshotting.
1307 bool serializer_enabled_; 1313 bool serializer_enabled_;
1308 1314
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 } 1605 }
1600 1606
1601 EmbeddedVector<char, 128> filename_; 1607 EmbeddedVector<char, 128> filename_;
1602 FILE* file_; 1608 FILE* file_;
1603 int scope_depth_; 1609 int scope_depth_;
1604 }; 1610 };
1605 1611
1606 } } // namespace v8::internal 1612 } } // namespace v8::internal
1607 1613
1608 #endif // V8_ISOLATE_H_ 1614 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698