Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 31 #include "../include/v8-debug.h" | 31 #include "../include/v8-debug.h" |
| 32 #include "allocation.h" | 32 #include "allocation.h" |
| 33 #include "apiutils.h" | 33 #include "apiutils.h" |
| 34 #include "atomicops.h" | 34 #include "atomicops.h" |
| 35 #include "builtins.h" | 35 #include "builtins.h" |
| 36 #include "contexts.h" | 36 #include "contexts.h" |
| 37 #include "execution.h" | 37 #include "execution.h" |
| 38 #include "frames.h" | 38 #include "frames.h" |
| 39 #include "global-handles.h" | 39 #include "global-handles.h" |
| 40 #include "handles.h" | 40 #include "handles.h" |
| 41 #include "hashmap.h" | |
| 41 #include "heap.h" | 42 #include "heap.h" |
| 42 #include "regexp-stack.h" | 43 #include "regexp-stack.h" |
| 43 #include "runtime-profiler.h" | 44 #include "runtime-profiler.h" |
| 44 #include "runtime.h" | 45 #include "runtime.h" |
| 45 #include "zone.h" | 46 #include "zone.h" |
| 46 | 47 |
| 47 namespace v8 { | 48 namespace v8 { |
| 48 namespace internal { | 49 namespace internal { |
| 49 | 50 |
| 50 class Bootstrapper; | 51 class Bootstrapper; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 273 | 274 |
| 274 // Whether out of memory exceptions should be ignored. | 275 // Whether out of memory exceptions should be ignored. |
| 275 bool ignore_out_of_memory_; | 276 bool ignore_out_of_memory_; |
| 276 | 277 |
| 277 private: | 278 private: |
| 278 void InitializeInternal(); | 279 void InitializeInternal(); |
| 279 | 280 |
| 280 Address try_catch_handler_address_; | 281 Address try_catch_handler_address_; |
| 281 }; | 282 }; |
| 282 | 283 |
| 283 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS) | |
| 284 | |
| 285 #define ISOLATE_PLATFORM_INIT_LIST(V) \ | |
| 286 /* VirtualFrame::SpilledScope state */ \ | |
| 287 V(bool, is_virtual_frame_in_spilled_scope, false) \ | |
|
Sven Panne
2012/02/23 08:01:25
This is probably unrelated code, but still dead co
| |
| 288 /* CodeGenerator::EmitNamedStore state */ \ | |
| 289 V(int, inlined_write_barrier_size, -1) | |
| 290 | |
| 291 #if !defined(__arm__) && !defined(__mips__) | |
| 292 class HashMap; | |
| 293 #endif | |
| 294 | |
| 295 #else | |
| 296 | |
| 297 #define ISOLATE_PLATFORM_INIT_LIST(V) | |
| 298 | |
| 299 #endif | |
| 300 | 284 |
| 301 #ifdef ENABLE_DEBUGGER_SUPPORT | 285 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 302 | 286 |
| 303 #define ISOLATE_DEBUGGER_INIT_LIST(V) \ | 287 #define ISOLATE_DEBUGGER_INIT_LIST(V) \ |
| 304 V(v8::Debug::EventCallback, debug_event_callback, NULL) \ | 288 V(v8::Debug::EventCallback, debug_event_callback, NULL) \ |
| 305 V(DebuggerAgent*, debugger_agent_instance, NULL) | 289 V(DebuggerAgent*, debugger_agent_instance, NULL) |
| 306 #else | 290 #else |
| 307 | 291 |
| 308 #define ISOLATE_DEBUGGER_INIT_LIST(V) | 292 #define ISOLATE_DEBUGGER_INIT_LIST(V) |
| 309 | 293 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 /* Serializer state. */ \ | 344 /* Serializer state. */ \ |
| 361 V(ExternalReferenceTable*, external_reference_table, NULL) \ | 345 V(ExternalReferenceTable*, external_reference_table, NULL) \ |
| 362 /* AstNode state. */ \ | 346 /* AstNode state. */ \ |
| 363 V(int, ast_node_id, 0) \ | 347 V(int, ast_node_id, 0) \ |
| 364 V(unsigned, ast_node_count, 0) \ | 348 V(unsigned, ast_node_count, 0) \ |
| 365 /* SafeStackFrameIterator activations count. */ \ | 349 /* SafeStackFrameIterator activations count. */ \ |
| 366 V(int, safe_stack_iterator_counter, 0) \ | 350 V(int, safe_stack_iterator_counter, 0) \ |
| 367 V(uint64_t, enabled_cpu_features, 0) \ | 351 V(uint64_t, enabled_cpu_features, 0) \ |
| 368 V(CpuProfiler*, cpu_profiler, NULL) \ | 352 V(CpuProfiler*, cpu_profiler, NULL) \ |
| 369 V(HeapProfiler*, heap_profiler, NULL) \ | 353 V(HeapProfiler*, heap_profiler, NULL) \ |
| 370 ISOLATE_PLATFORM_INIT_LIST(V) \ | |
| 371 ISOLATE_DEBUGGER_INIT_LIST(V) | 354 ISOLATE_DEBUGGER_INIT_LIST(V) |
| 372 | 355 |
| 373 class Isolate { | 356 class Isolate { |
| 374 // These forward declarations are required to make the friend declarations in | 357 // These forward declarations are required to make the friend declarations in |
| 375 // PerIsolateThreadData work on some older versions of gcc. | 358 // PerIsolateThreadData work on some older versions of gcc. |
| 376 class ThreadDataTable; | 359 class ThreadDataTable; |
| 377 class EntryStackItem; | 360 class EntryStackItem; |
| 378 public: | 361 public: |
| 379 ~Isolate(); | 362 ~Isolate(); |
| 380 | 363 |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1402 | 1385 |
| 1403 // Mark the global context with out of memory. | 1386 // Mark the global context with out of memory. |
| 1404 inline void Context::mark_out_of_memory() { | 1387 inline void Context::mark_out_of_memory() { |
| 1405 global_context()->set_out_of_memory(HEAP->true_value()); | 1388 global_context()->set_out_of_memory(HEAP->true_value()); |
| 1406 } | 1389 } |
| 1407 | 1390 |
| 1408 | 1391 |
| 1409 } } // namespace v8::internal | 1392 } } // namespace v8::internal |
| 1410 | 1393 |
| 1411 #endif // V8_ISOLATE_H_ | 1394 #endif // V8_ISOLATE_H_ |
| OLD | NEW |