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

Side by Side Diff: src/isolate.h

Issue 6606006: [Isolates] Merge 6500:6700 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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/ic.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 26 matching lines...) Expand all
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 "heap.h" 41 #include "heap.h"
42 #include "regexp-stack.h" 42 #include "regexp-stack.h"
43 #include "runtime-profiler.h" 43 #include "runtime-profiler.h"
44 #include "runtime.h" 44 #include "runtime.h"
45 #include "zone.h" 45 #include "zone.h"
46 46
47
48 namespace v8 { 47 namespace v8 {
49 namespace internal { 48 namespace internal {
50 49
51 class AstSentinels; 50 class AstSentinels;
52 class Bootstrapper; 51 class Bootstrapper;
53 class CodeGenerator; 52 class CodeGenerator;
54 class CodeRange; 53 class CodeRange;
55 class CompilationCache; 54 class CompilationCache;
56 class ContextSlotCache; 55 class ContextSlotCache;
57 class ContextSwitcher; 56 class ContextSwitcher;
(...skipping 17 matching lines...) Expand all
75 class SaveContext; 74 class SaveContext;
76 class ScannerConstants; 75 class ScannerConstants;
77 class StringInputBuffer; 76 class StringInputBuffer;
78 class StringTracker; 77 class StringTracker;
79 class StubCache; 78 class StubCache;
80 class ThreadManager; 79 class ThreadManager;
81 class ThreadState; 80 class ThreadState;
82 class ThreadVisitor; // Defined in v8threads.h 81 class ThreadVisitor; // Defined in v8threads.h
83 class VMState; 82 class VMState;
84 83
85 typedef void* ExternalReferenceRedirector(void* original, bool fp_return); 84 // 'void function pointer', used to roundtrip the
85 // ExternalReference::ExternalReferenceRedirector since we can not include
86 // assembler.h, where it is defined, here.
87 typedef void* ExternalReferenceRedirectorPointer();
86 88
87 89
88 #ifdef ENABLE_DEBUGGER_SUPPORT 90 #ifdef ENABLE_DEBUGGER_SUPPORT
89 class Debug; 91 class Debug;
90 class Debugger; 92 class Debugger;
91 class DebuggerAgent; 93 class DebuggerAgent;
92 #endif 94 #endif
93 95
94 #if !defined(__arm__) && defined(V8_TARGET_ARCH_ARM) 96 #if !defined(__arm__) && defined(V8_TARGET_ARCH_ARM)
95 class Redirection; 97 class Redirection;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 /* Assembler state. */ \ 283 /* Assembler state. */ \
282 /* A previously allocated buffer of kMinimalBufferSize bytes, or NULL. */ \ 284 /* A previously allocated buffer of kMinimalBufferSize bytes, or NULL. */ \
283 V(byte*, assembler_spare_buffer, NULL) \ 285 V(byte*, assembler_spare_buffer, NULL) \
284 /*This static counter ensures that NativeAllocationCheckers can be nested.*/ \ 286 /*This static counter ensures that NativeAllocationCheckers can be nested.*/ \
285 V(int, allocation_disallowed, 0) \ 287 V(int, allocation_disallowed, 0) \
286 V(FatalErrorCallback, exception_behavior, NULL) \ 288 V(FatalErrorCallback, exception_behavior, NULL) \
287 V(v8::Debug::MessageHandler, message_handler, NULL) \ 289 V(v8::Debug::MessageHandler, message_handler, NULL) \
288 /* To distinguish the function templates, so that we can find them in the */ \ 290 /* To distinguish the function templates, so that we can find them in the */ \
289 /* function cache of the global context. */ \ 291 /* function cache of the global context. */ \
290 V(int, next_serial_number, 0) \ 292 V(int, next_serial_number, 0) \
291 V(ExternalReferenceRedirector*, external_reference_redirector, NULL) \ 293 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, NULL) \
292 V(bool, always_allow_natives_syntax, false) \ 294 V(bool, always_allow_natives_syntax, false) \
293 /* Part of the state of liveedit. */ \ 295 /* Part of the state of liveedit. */ \
294 V(FunctionInfoListener*, active_function_info_listener, NULL) \ 296 V(FunctionInfoListener*, active_function_info_listener, NULL) \
295 /* State for Relocatable. */ \ 297 /* State for Relocatable. */ \
296 V(Relocatable*, relocatable_top, NULL) \ 298 V(Relocatable*, relocatable_top, NULL) \
297 /* State for CodeEntry in profile-generator. */ \ 299 /* State for CodeEntry in profile-generator. */ \
298 V(CodeGenerator*, current_code_generator, NULL) \ 300 V(CodeGenerator*, current_code_generator, NULL) \
299 V(bool, jump_target_compiling_deferred_code, false) \ 301 V(bool, jump_target_compiling_deferred_code, false) \
300 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ 302 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \
301 V(Object*, string_stream_current_security_token, NULL) \ 303 V(Object*, string_stream_current_security_token, NULL) \
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 Failure* ReThrow(MaybeObject* exception, MessageLocation* location = NULL); 610 Failure* ReThrow(MaybeObject* exception, MessageLocation* location = NULL);
609 void ScheduleThrow(Object* exception); 611 void ScheduleThrow(Object* exception);
610 void ReportPendingMessages(); 612 void ReportPendingMessages();
611 Failure* ThrowIllegalOperation(); 613 Failure* ThrowIllegalOperation();
612 614
613 // Promote a scheduled exception to pending. Asserts has_scheduled_exception. 615 // Promote a scheduled exception to pending. Asserts has_scheduled_exception.
614 Failure* PromoteScheduledException(); 616 Failure* PromoteScheduledException();
615 void DoThrow(MaybeObject* exception, 617 void DoThrow(MaybeObject* exception,
616 MessageLocation* location, 618 MessageLocation* location,
617 const char* message); 619 const char* message);
618 bool ShouldReturnException(bool* is_caught_externally, 620 // Checks if exception should be reported and finds out if it's
621 // caught externally.
622 bool ShouldReportException(bool* is_caught_externally,
619 bool catchable_by_javascript); 623 bool catchable_by_javascript);
620 624
621 // Attempts to compute the current source location, storing the 625 // Attempts to compute the current source location, storing the
622 // result in the target out parameter. 626 // result in the target out parameter.
623 void ComputeLocation(MessageLocation* target); 627 void ComputeLocation(MessageLocation* target);
624 628
625 // Override command line flag. 629 // Override command line flag.
626 void TraceException(bool flag); 630 void TraceException(bool flag);
627 631
628 // Out of resource exception helpers. 632 // Out of resource exception helpers.
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 1257
1254 } } // namespace v8::internal 1258 } } // namespace v8::internal
1255 1259
1256 // TODO(isolates): Get rid of these -inl.h includes and place them only where 1260 // TODO(isolates): Get rid of these -inl.h includes and place them only where
1257 // they're needed. 1261 // they're needed.
1258 #include "allocation-inl.h" 1262 #include "allocation-inl.h"
1259 #include "zone-inl.h" 1263 #include "zone-inl.h"
1260 #include "frames-inl.h" 1264 #include "frames-inl.h"
1261 1265
1262 #endif // V8_ISOLATE_H_ 1266 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698