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

Side by Side Diff: src/isolate.h

Issue 264233005: Clean up stack guard interrupts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 7 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include "../include/v8-debug.h" 8 #include "../include/v8-debug.h"
9 #include "allocation.h" 9 #include "allocation.h"
10 #include "assert-scope.h" 10 #include "assert-scope.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 V(unsigned, ast_node_count, 0) \ 352 V(unsigned, ast_node_count, 0) \
353 V(bool, microtask_pending, false) \ 353 V(bool, microtask_pending, false) \
354 V(bool, autorun_microtasks, true) \ 354 V(bool, autorun_microtasks, true) \
355 V(HStatistics*, hstatistics, NULL) \ 355 V(HStatistics*, hstatistics, NULL) \
356 V(HTracer*, htracer, NULL) \ 356 V(HTracer*, htracer, NULL) \
357 V(CodeTracer*, code_tracer, NULL) \ 357 V(CodeTracer*, code_tracer, NULL) \
358 V(bool, fp_stubs_generated, false) \ 358 V(bool, fp_stubs_generated, false) \
359 V(int, max_available_threads, 0) \ 359 V(int, max_available_threads, 0) \
360 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ 360 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \
361 V(DebuggerAgent*, debugger_agent_instance, NULL) \ 361 V(DebuggerAgent*, debugger_agent_instance, NULL) \
362 V(InterruptCallback, api_interrupt_callback, NULL) \
363 V(void*, api_interrupt_callback_data, NULL) \
362 ISOLATE_INIT_SIMULATOR_LIST(V) 364 ISOLATE_INIT_SIMULATOR_LIST(V)
363 365
364 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ 366 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \
365 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ 367 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \
366 inline type name() const { return thread_local_top_.name##_; } 368 inline type name() const { return thread_local_top_.name##_; }
367 369
368 370
369 class Isolate { 371 class Isolate {
370 // These forward declarations are required to make the friend declarations in 372 // These forward declarations are required to make the friend declarations in
371 // PerIsolateThreadData work on some older versions of gcc. 373 // PerIsolateThreadData work on some older versions of gcc.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 753
752 // Attempts to compute the current source location, storing the 754 // Attempts to compute the current source location, storing the
753 // result in the target out parameter. 755 // result in the target out parameter.
754 void ComputeLocation(MessageLocation* target); 756 void ComputeLocation(MessageLocation* target);
755 757
756 // Out of resource exception helpers. 758 // Out of resource exception helpers.
757 Object* StackOverflow(); 759 Object* StackOverflow();
758 Object* TerminateExecution(); 760 Object* TerminateExecution();
759 void CancelTerminateExecution(); 761 void CancelTerminateExecution();
760 762
763 void InvokeApiInterruptCallback();
764
761 // Administration 765 // Administration
762 void Iterate(ObjectVisitor* v); 766 void Iterate(ObjectVisitor* v);
763 void Iterate(ObjectVisitor* v, ThreadLocalTop* t); 767 void Iterate(ObjectVisitor* v, ThreadLocalTop* t);
764 char* Iterate(ObjectVisitor* v, char* t); 768 char* Iterate(ObjectVisitor* v, char* t);
765 void IterateThread(ThreadVisitor* v, char* t); 769 void IterateThread(ThreadVisitor* v, char* t);
766 770
767 771
768 // Returns the current native and global context. 772 // Returns the current native and global context.
769 Handle<Context> native_context(); 773 Handle<Context> native_context();
770 Handle<Context> global_context(); 774 Handle<Context> global_context();
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 } 1488 }
1485 1489
1486 EmbeddedVector<char, 128> filename_; 1490 EmbeddedVector<char, 128> filename_;
1487 FILE* file_; 1491 FILE* file_;
1488 int scope_depth_; 1492 int scope_depth_;
1489 }; 1493 };
1490 1494
1491 } } // namespace v8::internal 1495 } } // namespace v8::internal
1492 1496
1493 #endif // V8_ISOLATE_H_ 1497 #endif // V8_ISOLATE_H_
OLDNEW
« src/execution.cc ('K') | « src/incremental-marking.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698