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

Side by Side Diff: src/isolate.h

Issue 23441029: Move global V8::UseCrankshaft() into the Isolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Sven Panne. Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | src/isolate.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 void SetData(void* data) { embedder_data_ = data; } 1052 void SetData(void* data) { embedder_data_ = data; }
1053 void* GetData() { return embedder_data_; } 1053 void* GetData() { return embedder_data_; }
1054 1054
1055 LookupResult* top_lookup_result() { 1055 LookupResult* top_lookup_result() {
1056 return thread_local_top_.top_lookup_result_; 1056 return thread_local_top_.top_lookup_result_;
1057 } 1057 }
1058 void SetTopLookupResult(LookupResult* top) { 1058 void SetTopLookupResult(LookupResult* top) {
1059 thread_local_top_.top_lookup_result_ = top; 1059 thread_local_top_.top_lookup_result_ = top;
1060 } 1060 }
1061 1061
1062 bool use_crankshaft() const { return use_crankshaft_; }
1063
1062 bool initialized_from_snapshot() { return initialized_from_snapshot_; } 1064 bool initialized_from_snapshot() { return initialized_from_snapshot_; }
1063 1065
1064 double time_millis_since_init() { 1066 double time_millis_since_init() {
1065 return OS::TimeCurrentMillis() - time_millis_at_init_; 1067 return OS::TimeCurrentMillis() - time_millis_at_init_;
1066 } 1068 }
1067 1069
1068 DateCache* date_cache() { 1070 DateCache* date_cache() {
1069 return date_cache_; 1071 return date_cache_;
1070 } 1072 }
1071 1073
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 ConsStringIteratorOp objects_string_compare_iterator_a_; 1295 ConsStringIteratorOp objects_string_compare_iterator_a_;
1294 ConsStringIteratorOp objects_string_compare_iterator_b_; 1296 ConsStringIteratorOp objects_string_compare_iterator_b_;
1295 StaticResource<ConsStringIteratorOp> objects_string_iterator_; 1297 StaticResource<ConsStringIteratorOp> objects_string_iterator_;
1296 unibrow::Mapping<unibrow::Ecma262Canonicalize> 1298 unibrow::Mapping<unibrow::Ecma262Canonicalize>
1297 regexp_macro_assembler_canonicalize_; 1299 regexp_macro_assembler_canonicalize_;
1298 RegExpStack* regexp_stack_; 1300 RegExpStack* regexp_stack_;
1299 DateCache* date_cache_; 1301 DateCache* date_cache_;
1300 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; 1302 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
1301 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; 1303 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_;
1302 1304
1305 // True if we are using the Crankshaft optimizing compiler.
1306 bool use_crankshaft_;
1307
1303 // True if this isolate was initialized from a snapshot. 1308 // True if this isolate was initialized from a snapshot.
1304 bool initialized_from_snapshot_; 1309 bool initialized_from_snapshot_;
1305 1310
1306 // Time stamp at initialization. 1311 // Time stamp at initialization.
1307 double time_millis_at_init_; 1312 double time_millis_at_init_;
1308 1313
1309 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1314 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1310 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1315 V8_TARGET_ARCH_MIPS && !defined(__mips__)
1311 bool simulator_initialized_; 1316 bool simulator_initialized_;
1312 HashMap* simulator_i_cache_; 1317 HashMap* simulator_i_cache_;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1520 1525
1521 // Mark the native context with out of memory. 1526 // Mark the native context with out of memory.
1522 inline void Context::mark_out_of_memory() { 1527 inline void Context::mark_out_of_memory() {
1523 native_context()->set_out_of_memory(HEAP->true_value()); 1528 native_context()->set_out_of_memory(HEAP->true_value());
1524 } 1529 }
1525 1530
1526 1531
1527 } } // namespace v8::internal 1532 } } // namespace v8::internal
1528 1533
1529 #endif // V8_ISOLATE_H_ 1534 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698