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

Side by Side Diff: src/isolate.h

Issue 1510173002: Revert of Make Error.prototype.toString spec compliant; and fix various side-effect-free error printing metho… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/execution.cc ('k') | src/js/messages.js » ('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
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 return date_cache_; 940 return date_cache_;
941 } 941 }
942 942
943 void set_date_cache(DateCache* date_cache) { 943 void set_date_cache(DateCache* date_cache) {
944 if (date_cache != date_cache_) { 944 if (date_cache != date_cache_) {
945 delete date_cache_; 945 delete date_cache_;
946 } 946 }
947 date_cache_ = date_cache; 947 date_cache_ = date_cache;
948 } 948 }
949 949
950 ErrorToStringHelper* error_tostring_helper() {
951 return &error_tostring_helper_;
952 }
953
950 Map* get_initial_js_array_map(ElementsKind kind, 954 Map* get_initial_js_array_map(ElementsKind kind,
951 Strength strength = Strength::WEAK); 955 Strength strength = Strength::WEAK);
952 956
953 static const int kArrayProtectorValid = 1; 957 static const int kArrayProtectorValid = 1;
954 static const int kArrayProtectorInvalid = 0; 958 static const int kArrayProtectorInvalid = 0;
955 959
956 bool IsFastArrayConstructorPrototypeChainIntact(); 960 bool IsFastArrayConstructorPrototypeChainIntact();
957 961
958 // On intent to set an element in object, make sure that appropriate 962 // On intent to set an element in object, make sure that appropriate
959 // notifications occur if the set is on the elements of the array or 963 // notifications occur if the set is on the elements of the array or
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 ThreadManager* thread_manager_; 1242 ThreadManager* thread_manager_;
1239 RuntimeState runtime_state_; 1243 RuntimeState runtime_state_;
1240 Builtins builtins_; 1244 Builtins builtins_;
1241 bool has_installed_extensions_; 1245 bool has_installed_extensions_;
1242 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_; 1246 unibrow::Mapping<unibrow::Ecma262UnCanonicalize> jsregexp_uncanonicalize_;
1243 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_; 1247 unibrow::Mapping<unibrow::CanonicalizationRange> jsregexp_canonrange_;
1244 unibrow::Mapping<unibrow::Ecma262Canonicalize> 1248 unibrow::Mapping<unibrow::Ecma262Canonicalize>
1245 regexp_macro_assembler_canonicalize_; 1249 regexp_macro_assembler_canonicalize_;
1246 RegExpStack* regexp_stack_; 1250 RegExpStack* regexp_stack_;
1247 DateCache* date_cache_; 1251 DateCache* date_cache_;
1252 ErrorToStringHelper error_tostring_helper_;
1248 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; 1253 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
1249 CallInterfaceDescriptorData* call_descriptor_data_; 1254 CallInterfaceDescriptorData* call_descriptor_data_;
1250 base::RandomNumberGenerator* random_number_generator_; 1255 base::RandomNumberGenerator* random_number_generator_;
1251 1256
1252 // Whether the isolate has been created for snapshotting. 1257 // Whether the isolate has been created for snapshotting.
1253 bool serializer_enabled_; 1258 bool serializer_enabled_;
1254 1259
1255 // True if fatal error has been signaled for this isolate. 1260 // True if fatal error has been signaled for this isolate.
1256 bool has_fatal_error_; 1261 bool has_fatal_error_;
1257 1262
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 1560
1556 EmbeddedVector<char, 128> filename_; 1561 EmbeddedVector<char, 128> filename_;
1557 FILE* file_; 1562 FILE* file_;
1558 int scope_depth_; 1563 int scope_depth_;
1559 }; 1564 };
1560 1565
1561 } // namespace internal 1566 } // namespace internal
1562 } // namespace v8 1567 } // namespace v8
1563 1568
1564 #endif // V8_ISOLATE_H_ 1569 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/js/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698