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

Side by Side Diff: src/isolate.h

Issue 14139033: Clean up VMState a little bit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fixed mistake 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
« no previous file with comments | « src/ia32/macro-assembler-ia32.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 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 class RegExpStack; 78 class RegExpStack;
79 class SaveContext; 79 class SaveContext;
80 class UnicodeCache; 80 class UnicodeCache;
81 class ConsStringIteratorOp; 81 class ConsStringIteratorOp;
82 class StringTracker; 82 class StringTracker;
83 class StubCache; 83 class StubCache;
84 class SweeperThread; 84 class SweeperThread;
85 class ThreadManager; 85 class ThreadManager;
86 class ThreadState; 86 class ThreadState;
87 class ThreadVisitor; // Defined in v8threads.h 87 class ThreadVisitor; // Defined in v8threads.h
88 class VMState; 88 template <StateTag Tag> class VMState;
89 89
90 // 'void function pointer', used to roundtrip the 90 // 'void function pointer', used to roundtrip the
91 // ExternalReference::ExternalReferenceRedirector since we can not include 91 // ExternalReference::ExternalReferenceRedirector since we can not include
92 // assembler.h, where it is defined, here. 92 // assembler.h, where it is defined, here.
93 typedef void* ExternalReferenceRedirectorPointer(); 93 typedef void* ExternalReferenceRedirectorPointer();
94 94
95 95
96 #ifdef ENABLE_DEBUGGER_SUPPORT 96 #ifdef ENABLE_DEBUGGER_SUPPORT
97 class Debug; 97 class Debug;
98 class Debugger; 98 class Debugger;
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 return thread_local_top_.external_callback_; 1024 return thread_local_top_.external_callback_;
1025 } 1025 }
1026 void set_external_callback(Address callback) { 1026 void set_external_callback(Address callback) {
1027 thread_local_top_.external_callback_ = callback; 1027 thread_local_top_.external_callback_ = callback;
1028 } 1028 }
1029 1029
1030 StateTag current_vm_state() { 1030 StateTag current_vm_state() {
1031 return thread_local_top_.current_vm_state_; 1031 return thread_local_top_.current_vm_state_;
1032 } 1032 }
1033 1033
1034 void SetCurrentVMState(StateTag state) { 1034 void set_current_vm_state(StateTag state) {
1035 thread_local_top_.current_vm_state_ = state; 1035 thread_local_top_.current_vm_state_ = state;
1036 } 1036 }
1037 1037
1038 void SetData(void* data) { embedder_data_ = data; } 1038 void SetData(void* data) { embedder_data_ = data; }
1039 void* GetData() { return embedder_data_; } 1039 void* GetData() { return embedder_data_; }
1040 1040
1041 LookupResult* top_lookup_result() { 1041 LookupResult* top_lookup_result() {
1042 return thread_local_top_.top_lookup_result_; 1042 return thread_local_top_.top_lookup_result_;
1043 } 1043 }
1044 void SetTopLookupResult(LookupResult* top) { 1044 void SetTopLookupResult(LookupResult* top) {
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 1482
1483 // Mark the native context with out of memory. 1483 // Mark the native context with out of memory.
1484 inline void Context::mark_out_of_memory() { 1484 inline void Context::mark_out_of_memory() {
1485 native_context()->set_out_of_memory(HEAP->true_value()); 1485 native_context()->set_out_of_memory(HEAP->true_value());
1486 } 1486 }
1487 1487
1488 1488
1489 } } // namespace v8::internal 1489 } } // namespace v8::internal
1490 1490
1491 #endif // V8_ISOLATE_H_ 1491 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698