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

Side by Side Diff: src/parser.cc

Issue 582703002: Widen the intake valve for TurboFan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/base/platform/platform.h" 9 #include "src/base/platform/platform.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 scope_->SetStrictMode(STRICT); 1106 scope_->SetStrictMode(STRICT);
1107 // "use strict" is the only directive for now. 1107 // "use strict" is the only directive for now.
1108 directive_prologue = false; 1108 directive_prologue = false;
1109 } else if (literal->raw_value()->AsString() == 1109 } else if (literal->raw_value()->AsString() ==
1110 ast_value_factory()->use_asm_string() && 1110 ast_value_factory()->use_asm_string() &&
1111 token_loc.end_pos - token_loc.beg_pos == 1111 token_loc.end_pos - token_loc.beg_pos ==
1112 ast_value_factory()->use_asm_string()->length() + 2) { 1112 ast_value_factory()->use_asm_string()->length() + 2) {
1113 // Store the usage count; The actual use counter on the isolate is 1113 // Store the usage count; The actual use counter on the isolate is
1114 // incremented after parsing is done. 1114 // incremented after parsing is done.
1115 ++use_counts_[v8::Isolate::kUseAsm]; 1115 ++use_counts_[v8::Isolate::kUseAsm];
1116 scope_->SetAsmModule();
1116 } 1117 }
1117 } else { 1118 } else {
1118 // End of the directive prologue. 1119 // End of the directive prologue.
1119 directive_prologue = false; 1120 directive_prologue = false;
1120 } 1121 }
1121 } 1122 }
1122 1123
1123 processor->Add(stat, zone()); 1124 processor->Add(stat, zone());
1124 } 1125 }
1125 1126
(...skipping 3820 matching lines...) Expand 10 before | Expand all | Expand 10 after
4946 4947
4947 // We cannot internalize on a background thread; a foreground task will take 4948 // We cannot internalize on a background thread; a foreground task will take
4948 // care of calling Parser::Internalize just before compilation. 4949 // care of calling Parser::Internalize just before compilation.
4949 4950
4950 if (compile_options() == ScriptCompiler::kProduceParserCache) { 4951 if (compile_options() == ScriptCompiler::kProduceParserCache) {
4951 if (result != NULL) *info_->cached_data() = recorder.GetScriptData(); 4952 if (result != NULL) *info_->cached_data() = recorder.GetScriptData();
4952 log_ = NULL; 4953 log_ = NULL;
4953 } 4954 }
4954 } 4955 }
4955 } } // namespace v8::internal 4956 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698