OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 bool has_only_simple_this_property_assignments() { | 1429 bool has_only_simple_this_property_assignments() { |
1430 return has_only_simple_this_property_assignments_; | 1430 return has_only_simple_this_property_assignments_; |
1431 } | 1431 } |
1432 Handle<FixedArray> this_property_assignments() { | 1432 Handle<FixedArray> this_property_assignments() { |
1433 return this_property_assignments_; | 1433 return this_property_assignments_; |
1434 } | 1434 } |
1435 int num_parameters() { return num_parameters_; } | 1435 int num_parameters() { return num_parameters_; } |
1436 | 1436 |
1437 bool AllowsLazyCompilation(); | 1437 bool AllowsLazyCompilation(); |
1438 | 1438 |
| 1439 Handle<String> debug_name() const { |
| 1440 if (name_->length() > 0) return name_; |
| 1441 return inferred_name(); |
| 1442 } |
| 1443 |
1439 Handle<String> inferred_name() const { return inferred_name_; } | 1444 Handle<String> inferred_name() const { return inferred_name_; } |
1440 void set_inferred_name(Handle<String> inferred_name) { | 1445 void set_inferred_name(Handle<String> inferred_name) { |
1441 inferred_name_ = inferred_name; | 1446 inferred_name_ = inferred_name; |
1442 } | 1447 } |
1443 | 1448 |
1444 bool try_full_codegen() { return try_full_codegen_; } | 1449 bool try_full_codegen() { return try_full_codegen_; } |
1445 void set_try_full_codegen(bool flag) { try_full_codegen_ = flag; } | 1450 void set_try_full_codegen(bool flag) { try_full_codegen_ = flag; } |
1446 | 1451 |
1447 #ifdef DEBUG | 1452 #ifdef DEBUG |
1448 void mark_as_compiled() { | 1453 void mark_as_compiled() { |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1876 AST_NODE_LIST(DEF_VISIT) | 1881 AST_NODE_LIST(DEF_VISIT) |
1877 #undef DEF_VISIT | 1882 #undef DEF_VISIT |
1878 | 1883 |
1879 private: | 1884 private: |
1880 bool stack_overflow_; | 1885 bool stack_overflow_; |
1881 }; | 1886 }; |
1882 | 1887 |
1883 } } // namespace v8::internal | 1888 } } // namespace v8::internal |
1884 | 1889 |
1885 #endif // V8_AST_H_ | 1890 #endif // V8_AST_H_ |
OLD | NEW |