Chromium Code Reviews| 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 |