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

Unified Diff: src/ast.h

Issue 341081: Begin using the top-level code generator for code that is inside... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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
Index: src/ast.h
===================================================================
--- src/ast.h (revision 3203)
+++ src/ast.h (working copy)
@@ -1302,7 +1302,8 @@
is_expression_(is_expression),
loop_nesting_(0),
function_token_position_(RelocInfo::kNoPosition),
- inferred_name_(Heap::empty_string()) {
+ inferred_name_(Heap::empty_string()),
+ try_fast_codegen_(false) {
#ifdef DEBUG
already_compiled_ = false;
#endif
@@ -1345,6 +1346,9 @@
inferred_name_ = inferred_name;
}
+ void mark_as_fast() { try_fast_codegen_ = true; }
+ bool is_marked_as_fast() { return try_fast_codegen_; }
Søren Thygesen Gjesse 2009/11/03 13:57:47 Why not just the standard accessor names? void
Kevin Millikin (Chromium) 2009/11/03 14:16:09 I was being too cute. I didn't see the need yet t
+
#ifdef DEBUG
void mark_as_compiled() {
ASSERT(!already_compiled_);
@@ -1368,6 +1372,7 @@
int loop_nesting_;
int function_token_position_;
Handle<String> inferred_name_;
+ bool try_fast_codegen_;
#ifdef DEBUG
bool already_compiled_;
#endif

Powered by Google App Engine
This is Rietveld 408576698