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

Side by Side Diff: src/isolate.h

Issue 12494012: new style of property/function callbacks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 8 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "optimizing-compiler-thread.h" 44 #include "optimizing-compiler-thread.h"
45 #include "regexp-stack.h" 45 #include "regexp-stack.h"
46 #include "runtime-profiler.h" 46 #include "runtime-profiler.h"
47 #include "runtime.h" 47 #include "runtime.h"
48 #include "zone.h" 48 #include "zone.h"
49 49
50 namespace v8 { 50 namespace v8 {
51 namespace internal { 51 namespace internal {
52 52
53 class Bootstrapper; 53 class Bootstrapper;
54 class CallbackTable;
54 class CodeGenerator; 55 class CodeGenerator;
55 class CodeRange; 56 class CodeRange;
56 struct CodeStubInterfaceDescriptor; 57 struct CodeStubInterfaceDescriptor;
57 class CompilationCache; 58 class CompilationCache;
58 class ContextSlotCache; 59 class ContextSlotCache;
59 class ContextSwitcher; 60 class ContextSwitcher;
60 class Counters; 61 class Counters;
61 class CpuFeatures; 62 class CpuFeatures;
62 class CpuProfiler; 63 class CpuProfiler;
63 class DeoptimizerData; 64 class DeoptimizerData;
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 static v8::Isolate* GetDefaultIsolateForLocking(); 1089 static v8::Isolate* GetDefaultIsolateForLocking();
1089 1090
1090 MarkingThread** marking_threads() { 1091 MarkingThread** marking_threads() {
1091 return marking_thread_; 1092 return marking_thread_;
1092 } 1093 }
1093 1094
1094 SweeperThread** sweeper_threads() { 1095 SweeperThread** sweeper_threads() {
1095 return sweeper_thread_; 1096 return sweeper_thread_;
1096 } 1097 }
1097 1098
1099 CallbackTable* callback_table() {
1100 return callback_table_;
1101 }
1102 void set_callback_table(CallbackTable* callback_table) {
1103 callback_table_ = callback_table;
1104 }
1105
1098 HStatistics* GetHStatistics(); 1106 HStatistics* GetHStatistics();
1099 HTracer* GetHTracer(); 1107 HTracer* GetHTracer();
1100 1108
1101 private: 1109 private:
1102 Isolate(); 1110 Isolate();
1103 1111
1104 int id() const { return static_cast<int>(id_); } 1112 int id() const { return static_cast<int>(id_); }
1105 1113
1106 friend struct GlobalState; 1114 friend struct GlobalState;
1107 friend struct InitializeGlobalState; 1115 friend struct InitializeGlobalState;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 static const intptr_t name##_debug_offset_; 1333 static const intptr_t name##_debug_offset_;
1326 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 1334 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
1327 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1335 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1328 #undef ISOLATE_FIELD_OFFSET 1336 #undef ISOLATE_FIELD_OFFSET
1329 #endif 1337 #endif
1330 1338
1331 DeferredHandles* deferred_handles_head_; 1339 DeferredHandles* deferred_handles_head_;
1332 OptimizingCompilerThread optimizing_compiler_thread_; 1340 OptimizingCompilerThread optimizing_compiler_thread_;
1333 MarkingThread** marking_thread_; 1341 MarkingThread** marking_thread_;
1334 SweeperThread** sweeper_thread_; 1342 SweeperThread** sweeper_thread_;
1343 CallbackTable* callback_table_;
1335 1344
1336 friend class ExecutionAccess; 1345 friend class ExecutionAccess;
1337 friend class HandleScopeImplementer; 1346 friend class HandleScopeImplementer;
1338 friend class IsolateInitializer; 1347 friend class IsolateInitializer;
1339 friend class MarkingThread; 1348 friend class MarkingThread;
1340 friend class OptimizingCompilerThread; 1349 friend class OptimizingCompilerThread;
1341 friend class SweeperThread; 1350 friend class SweeperThread;
1342 friend class ThreadManager; 1351 friend class ThreadManager;
1343 friend class Simulator; 1352 friend class Simulator;
1344 friend class StackGuard; 1353 friend class StackGuard;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 1491
1483 // Mark the native context with out of memory. 1492 // Mark the native context with out of memory.
1484 inline void Context::mark_out_of_memory() { 1493 inline void Context::mark_out_of_memory() {
1485 native_context()->set_out_of_memory(HEAP->true_value()); 1494 native_context()->set_out_of_memory(HEAP->true_value());
1486 } 1495 }
1487 1496
1488 1497
1489 } } // namespace v8::internal 1498 } } // namespace v8::internal
1490 1499
1491 #endif // V8_ISOLATE_H_ 1500 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/isolate.cc » ('j') | src/x64/macro-assembler-x64.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698