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

Side by Side Diff: test/cctest/test-compiler.cc

Issue 2463353002: [Interpreter] Remove unused --ignition-eager flag. (Closed)
Patch Set: 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 | « test/cctest/test-api.cc ('k') | test/cctest/test-heap-profiler.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 // 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // baseline code is from fullcodegen. 326 // baseline code is from fullcodegen.
327 CHECK(f->shared()->has_deoptimization_support() || i::FLAG_ignition || 327 CHECK(f->shared()->has_deoptimization_support() || i::FLAG_ignition ||
328 i::FLAG_turbo); 328 i::FLAG_turbo);
329 object = f->feedback_vector()->Get(slot_for_a); 329 object = f->feedback_vector()->Get(slot_for_a);
330 CHECK(object->IsWeakCell() && 330 CHECK(object->IsWeakCell() &&
331 WeakCell::cast(object)->value()->IsJSFunction()); 331 WeakCell::cast(object)->value()->IsJSFunction());
332 } 332 }
333 333
334 334
335 TEST(FeedbackVectorUnaffectedByScopeChanges) { 335 TEST(FeedbackVectorUnaffectedByScopeChanges) {
336 if (i::FLAG_always_opt || !i::FLAG_lazy || 336 if (i::FLAG_always_opt || !i::FLAG_lazy) {
337 (FLAG_ignition && FLAG_ignition_eager)) {
338 return; 337 return;
339 } 338 }
340 CcTest::InitializeVM(); 339 CcTest::InitializeVM();
341 v8::HandleScope scope(CcTest::isolate()); 340 v8::HandleScope scope(CcTest::isolate());
342 v8::Local<v8::Context> context = CcTest::isolate()->GetCurrentContext(); 341 v8::Local<v8::Context> context = CcTest::isolate()->GetCurrentContext();
343 342
344 CompileRun("function builder() {" 343 CompileRun("function builder() {"
345 " call_target = function() { return 3; };" 344 " call_target = function() { return 3; };"
346 " return (function() {" 345 " return (function() {"
347 " eval('');" 346 " eval('');"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 CompileRun("foo()"); 714 CompileRun("foo()");
716 CHECK_EQ(2, foo->feedback_vector()->invocation_count()); 715 CHECK_EQ(2, foo->feedback_vector()->invocation_count());
717 CompileRun("bar()"); 716 CompileRun("bar()");
718 CHECK_EQ(2, foo->feedback_vector()->invocation_count()); 717 CHECK_EQ(2, foo->feedback_vector()->invocation_count());
719 CompileRun("foo(); foo()"); 718 CompileRun("foo(); foo()");
720 CHECK_EQ(4, foo->feedback_vector()->invocation_count()); 719 CHECK_EQ(4, foo->feedback_vector()->invocation_count());
721 CompileRun("%BaselineFunctionOnNextCall(foo);"); 720 CompileRun("%BaselineFunctionOnNextCall(foo);");
722 CompileRun("foo();"); 721 CompileRun("foo();");
723 CHECK_EQ(5, foo->feedback_vector()->invocation_count()); 722 CHECK_EQ(5, foo->feedback_vector()->invocation_count());
724 } 723 }
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698