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

Side by Side Diff: src/compiler.cc

Issue 2481433002: [Interpreter] Add IsInterpreted() to JSFunction and use to fix test-heap tests. (Closed)
Patch Set: Fix always-opt 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') | src/objects.h » ('J')
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 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 // The existing unoptimized code was replaced with the new one. 1361 // The existing unoptimized code was replaced with the new one.
1362 RecordFunctionCompilation(CodeEventListener::LAZY_COMPILE_TAG, 1362 RecordFunctionCompilation(CodeEventListener::LAZY_COMPILE_TAG,
1363 &unoptimized); 1363 &unoptimized);
1364 } 1364 }
1365 return true; 1365 return true;
1366 } 1366 }
1367 1367
1368 // static 1368 // static
1369 Compiler::CompilationTier Compiler::NextCompilationTier(JSFunction* function) { 1369 Compiler::CompilationTier Compiler::NextCompilationTier(JSFunction* function) {
1370 Handle<SharedFunctionInfo> shared(function->shared(), function->GetIsolate()); 1370 Handle<SharedFunctionInfo> shared(function->shared(), function->GetIsolate());
1371 if (shared->code()->is_interpreter_trampoline_builtin()) { 1371 if (shared->IsInterpreted()) {
1372 if (UseTurboFan(shared)) { 1372 if (UseTurboFan(shared)) {
1373 return OPTIMIZED; 1373 return OPTIMIZED;
1374 } else { 1374 } else {
1375 return BASELINE; 1375 return BASELINE;
1376 } 1376 }
1377 } else { 1377 } else {
1378 return OPTIMIZED; 1378 return OPTIMIZED;
1379 } 1379 }
1380 } 1380 }
1381 1381
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1824 DCHECK(shared->is_compiled()); 1824 DCHECK(shared->is_compiled());
1825 function->set_literals(cached.literals); 1825 function->set_literals(cached.literals);
1826 } else if (shared->is_compiled()) { 1826 } else if (shared->is_compiled()) {
1827 // TODO(mvstanton): pass pretenure flag to EnsureLiterals. 1827 // TODO(mvstanton): pass pretenure flag to EnsureLiterals.
1828 JSFunction::EnsureLiterals(function); 1828 JSFunction::EnsureLiterals(function);
1829 } 1829 }
1830 } 1830 }
1831 1831
1832 } // namespace internal 1832 } // namespace internal
1833 } // namespace v8 1833 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/ic/ic.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698