Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/parsing/parser.h" | 5 #include "src/parsing/parser.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "src/api.h" | 9 #include "src/api.h" |
| 10 #include "src/ast/ast-expression-rewriter.h" | 10 #include "src/ast/ast-expression-rewriter.h" |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 545 info->isolate()->is_tail_call_elimination_enabled()); | 545 info->isolate()->is_tail_call_elimination_enabled()); |
| 546 set_allow_harmony_do_expressions(FLAG_harmony_do_expressions); | 546 set_allow_harmony_do_expressions(FLAG_harmony_do_expressions); |
| 547 set_allow_harmony_function_sent(FLAG_harmony_function_sent); | 547 set_allow_harmony_function_sent(FLAG_harmony_function_sent); |
| 548 set_allow_harmony_restrictive_generators(FLAG_harmony_restrictive_generators); | 548 set_allow_harmony_restrictive_generators(FLAG_harmony_restrictive_generators); |
| 549 set_allow_harmony_trailing_commas(FLAG_harmony_trailing_commas); | 549 set_allow_harmony_trailing_commas(FLAG_harmony_trailing_commas); |
| 550 set_allow_harmony_class_fields(FLAG_harmony_class_fields); | 550 set_allow_harmony_class_fields(FLAG_harmony_class_fields); |
| 551 set_allow_harmony_object_rest_spread(FLAG_harmony_object_rest_spread); | 551 set_allow_harmony_object_rest_spread(FLAG_harmony_object_rest_spread); |
| 552 set_allow_harmony_dynamic_import(FLAG_harmony_dynamic_import); | 552 set_allow_harmony_dynamic_import(FLAG_harmony_dynamic_import); |
| 553 set_allow_harmony_async_iteration(FLAG_harmony_async_iteration); | 553 set_allow_harmony_async_iteration(FLAG_harmony_async_iteration); |
| 554 set_allow_harmony_template_escapes(FLAG_harmony_template_escapes); | 554 set_allow_harmony_template_escapes(FLAG_harmony_template_escapes); |
| 555 | |
|
adamk
2017/03/15 21:36:44
Is there supposed to be a runtime flag here?
gsathya
2017/03/16 00:59:25
Nope
| |
| 555 for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount; | 556 for (int feature = 0; feature < v8::Isolate::kUseCounterFeatureCount; |
| 556 ++feature) { | 557 ++feature) { |
| 557 use_counts_[feature] = 0; | 558 use_counts_[feature] = 0; |
| 558 } | 559 } |
| 559 if (info->ast_value_factory() == NULL) { | 560 if (info->ast_value_factory() == NULL) { |
| 560 // info takes ownership of AstValueFactory. | 561 // info takes ownership of AstValueFactory. |
| 561 info->set_ast_value_factory(new AstValueFactory( | 562 info->set_ast_value_factory(new AstValueFactory( |
| 562 zone(), info->isolate()->ast_string_constants(), info->hash_seed())); | 563 zone(), info->isolate()->ast_string_constants(), info->hash_seed())); |
| 563 info->set_ast_value_factory_owned(); | 564 info->set_ast_value_factory_owned(); |
| 564 ast_value_factory_ = info->ast_value_factory(); | 565 ast_value_factory_ = info->ast_value_factory(); |
| (...skipping 4502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5067 | 5068 |
| 5068 return final_loop; | 5069 return final_loop; |
| 5069 } | 5070 } |
| 5070 | 5071 |
| 5071 #undef CHECK_OK | 5072 #undef CHECK_OK |
| 5072 #undef CHECK_OK_VOID | 5073 #undef CHECK_OK_VOID |
| 5073 #undef CHECK_FAILED | 5074 #undef CHECK_FAILED |
| 5074 | 5075 |
| 5075 } // namespace internal | 5076 } // namespace internal |
| 5076 } // namespace v8 | 5077 } // namespace v8 |
| OLD | NEW |