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

Unified Diff: src/codegen.h

Issue 435003: Patch for allowing several V8 instances in process:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stubs.cc ('k') | src/codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.h
===================================================================
--- src/codegen.h (revision 3427)
+++ src/codegen.h (working copy)
@@ -101,21 +101,22 @@
class CodeGeneratorScope BASE_EMBEDDED {
public:
explicit CodeGeneratorScope(CodeGenerator* cgen) {
- previous_ = top_;
- top_ = cgen;
+ CodeGeneratorData& code_generator_data = v8_context()->code_generator_data_;
+ previous_ = code_generator_data.top_;
+ code_generator_data.top_ = cgen;
}
~CodeGeneratorScope() {
- top_ = previous_;
+ v8_context()->code_generator_data_.top_ = previous_;
}
static CodeGenerator* Current() {
- ASSERT(top_ != NULL);
- return top_;
+ CodeGeneratorData& code_generator_data = v8_context()->code_generator_data_;
+ ASSERT(code_generator_data.top_ != NULL);
+ return code_generator_data.top_;
}
private:
- static CodeGenerator* top_;
CodeGenerator* previous_;
};
« no previous file with comments | « src/code-stubs.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698