| OLD | NEW | 
|     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  Loading... | 
|  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 context_exit_happened() { | 
 |  1063     return context_exit_happened_; | 
 |  1064   } | 
 |  1065   void set_context_exit_happened(bool context_exit_happened) { | 
 |  1066     context_exit_happened_ = context_exit_happened; | 
 |  1067   } | 
 |  1068  | 
|  1062   bool initialized_from_snapshot() { return initialized_from_snapshot_; } |  1069   bool initialized_from_snapshot() { return initialized_from_snapshot_; } | 
|  1063  |  1070  | 
|  1064   double time_millis_since_init() { |  1071   double time_millis_since_init() { | 
|  1065     return OS::TimeCurrentMillis() - time_millis_at_init_; |  1072     return OS::TimeCurrentMillis() - time_millis_at_init_; | 
|  1066   } |  1073   } | 
|  1067  |  1074  | 
|  1068   DateCache* date_cache() { |  1075   DateCache* date_cache() { | 
|  1069     return date_cache_; |  1076     return date_cache_; | 
|  1070   } |  1077   } | 
|  1071  |  1078  | 
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1299   ConsStringIteratorOp objects_string_compare_iterator_a_; |  1306   ConsStringIteratorOp objects_string_compare_iterator_a_; | 
|  1300   ConsStringIteratorOp objects_string_compare_iterator_b_; |  1307   ConsStringIteratorOp objects_string_compare_iterator_b_; | 
|  1301   StaticResource<ConsStringIteratorOp> objects_string_iterator_; |  1308   StaticResource<ConsStringIteratorOp> objects_string_iterator_; | 
|  1302   unibrow::Mapping<unibrow::Ecma262Canonicalize> |  1309   unibrow::Mapping<unibrow::Ecma262Canonicalize> | 
|  1303       regexp_macro_assembler_canonicalize_; |  1310       regexp_macro_assembler_canonicalize_; | 
|  1304   RegExpStack* regexp_stack_; |  1311   RegExpStack* regexp_stack_; | 
|  1305   DateCache* date_cache_; |  1312   DateCache* date_cache_; | 
|  1306   unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; |  1313   unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; | 
|  1307   CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; |  1314   CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; | 
|  1308  |  1315  | 
 |  1316   // The garbage collector should be a little more aggressive when it knows | 
 |  1317   // that a context was recently exited. | 
 |  1318   bool context_exit_happened_; | 
 |  1319  | 
|  1309   // True if this isolate was initialized from a snapshot. |  1320   // True if this isolate was initialized from a snapshot. | 
|  1310   bool initialized_from_snapshot_; |  1321   bool initialized_from_snapshot_; | 
|  1311  |  1322  | 
|  1312   // Time stamp at initialization. |  1323   // Time stamp at initialization. | 
|  1313   double time_millis_at_init_; |  1324   double time_millis_at_init_; | 
|  1314  |  1325  | 
|  1315 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ |  1326 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ | 
|  1316     V8_TARGET_ARCH_MIPS && !defined(__mips__) |  1327     V8_TARGET_ARCH_MIPS && !defined(__mips__) | 
|  1317   bool simulator_initialized_; |  1328   bool simulator_initialized_; | 
|  1318   HashMap* simulator_i_cache_; |  1329   HashMap* simulator_i_cache_; | 
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1512  |  1523  | 
|  1513 // Mark the native context with out of memory. |  1524 // Mark the native context with out of memory. | 
|  1514 inline void Context::mark_out_of_memory() { |  1525 inline void Context::mark_out_of_memory() { | 
|  1515   native_context()->set_out_of_memory(HEAP->true_value()); |  1526   native_context()->set_out_of_memory(HEAP->true_value()); | 
|  1516 } |  1527 } | 
|  1517  |  1528  | 
|  1518  |  1529  | 
|  1519 } }  // namespace v8::internal |  1530 } }  // namespace v8::internal | 
|  1520  |  1531  | 
|  1521 #endif  // V8_ISOLATE_H_ |  1532 #endif  // V8_ISOLATE_H_ | 
| OLD | NEW |