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

Side by Side Diff: src/compiler.cc

Issue 2481433002: [Interpreter] Add IsInterpreted() to JSFunction and use to fix test-heap tests. (Closed)
Patch Set: Rebase Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/ic/ic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/compiler.h" 5 #include "src/compiler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/asmjs/asm-js.h" 10 #include "src/asmjs/asm-js.h"
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 // The existing unoptimized code was replaced with the new one. 1242 // The existing unoptimized code was replaced with the new one.
1243 RecordFunctionCompilation(CodeEventListener::LAZY_COMPILE_TAG, 1243 RecordFunctionCompilation(CodeEventListener::LAZY_COMPILE_TAG,
1244 &unoptimized); 1244 &unoptimized);
1245 } 1245 }
1246 return true; 1246 return true;
1247 } 1247 }
1248 1248
1249 // static 1249 // static
1250 Compiler::CompilationTier Compiler::NextCompilationTier(JSFunction* function) { 1250 Compiler::CompilationTier Compiler::NextCompilationTier(JSFunction* function) {
1251 Handle<SharedFunctionInfo> shared(function->shared(), function->GetIsolate()); 1251 Handle<SharedFunctionInfo> shared(function->shared(), function->GetIsolate());
1252 if (shared->code()->is_interpreter_trampoline_builtin()) { 1252 if (shared->IsInterpreted()) {
1253 if (UseTurboFan(shared)) { 1253 if (UseTurboFan(shared)) {
1254 return OPTIMIZED; 1254 return OPTIMIZED;
1255 } else { 1255 } else {
1256 return BASELINE; 1256 return BASELINE;
1257 } 1257 }
1258 } else { 1258 } else {
1259 return OPTIMIZED; 1259 return OPTIMIZED;
1260 } 1260 }
1261 } 1261 }
1262 1262
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 DCHECK(shared->is_compiled()); 1705 DCHECK(shared->is_compiled());
1706 function->set_literals(cached.literals); 1706 function->set_literals(cached.literals);
1707 } else if (shared->is_compiled()) { 1707 } else if (shared->is_compiled()) {
1708 // TODO(mvstanton): pass pretenure flag to EnsureLiterals. 1708 // TODO(mvstanton): pass pretenure flag to EnsureLiterals.
1709 JSFunction::EnsureLiterals(function); 1709 JSFunction::EnsureLiterals(function);
1710 } 1710 }
1711 } 1711 }
1712 1712
1713 } // namespace internal 1713 } // namespace internal
1714 } // namespace v8 1714 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698