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

Side by Side Diff: src/isolate.h

Issue 198253004: Introduce per-isolate assert scopes and API to guard JS execution. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: add missing file Created 6 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
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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 /* AstNode state. */ \ 374 /* AstNode state. */ \
375 V(int, ast_node_id, 0) \ 375 V(int, ast_node_id, 0) \
376 V(unsigned, ast_node_count, 0) \ 376 V(unsigned, ast_node_count, 0) \
377 V(bool, microtask_pending, false) \ 377 V(bool, microtask_pending, false) \
378 V(bool, autorun_microtasks, true) \ 378 V(bool, autorun_microtasks, true) \
379 V(HStatistics*, hstatistics, NULL) \ 379 V(HStatistics*, hstatistics, NULL) \
380 V(HTracer*, htracer, NULL) \ 380 V(HTracer*, htracer, NULL) \
381 V(CodeTracer*, code_tracer, NULL) \ 381 V(CodeTracer*, code_tracer, NULL) \
382 V(bool, fp_stubs_generated, false) \ 382 V(bool, fp_stubs_generated, false) \
383 V(int, max_available_threads, 0) \ 383 V(int, max_available_threads, 0) \
384 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \
384 ISOLATE_INIT_SIMULATOR_LIST(V) \ 385 ISOLATE_INIT_SIMULATOR_LIST(V) \
385 ISOLATE_DEBUGGER_INIT_LIST(V) 386 ISOLATE_DEBUGGER_INIT_LIST(V)
386 387
387 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ 388 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \
388 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ 389 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \
389 inline type name() const { return thread_local_top_.name##_; } 390 inline type name() const { return thread_local_top_.name##_; }
390 391
391 392
392 class Isolate { 393 class Isolate {
393 // These forward declarations are required to make the friend declarations in 394 // These forward declarations are required to make the friend declarations in
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 } 1550 }
1550 1551
1551 EmbeddedVector<char, 128> filename_; 1552 EmbeddedVector<char, 128> filename_;
1552 FILE* file_; 1553 FILE* file_;
1553 int scope_depth_; 1554 int scope_depth_;
1554 }; 1555 };
1555 1556
1556 } } // namespace v8::internal 1557 } } // namespace v8::internal
1557 1558
1558 #endif // V8_ISOLATE_H_ 1559 #endif // V8_ISOLATE_H_
OLDNEW
« include/v8.h ('K') | « src/heap-inl.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698