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

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

Issue 2622503002: include fixing: api.h shouldn't include objects-inl.h (Closed)
Patch Set: static type check Created 3 years, 11 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
« no previous file with comments | « test/cctest/test-ast.cc ('k') | test/cctest/test-global-handles.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 17 matching lines...) Expand all
28 #include <stdlib.h> 28 #include <stdlib.h>
29 #include <wchar.h> 29 #include <wchar.h>
30 30
31 #include "src/v8.h" 31 #include "src/v8.h"
32 32
33 #include "src/api.h" 33 #include "src/api.h"
34 #include "src/compiler.h" 34 #include "src/compiler.h"
35 #include "src/disasm.h" 35 #include "src/disasm.h"
36 #include "src/factory.h" 36 #include "src/factory.h"
37 #include "src/interpreter/interpreter.h" 37 #include "src/interpreter/interpreter.h"
38 #include "src/objects-inl.h"
38 #include "test/cctest/cctest.h" 39 #include "test/cctest/cctest.h"
39 40
40 using namespace v8::internal; 41 using namespace v8::internal;
41 42
42 static Handle<Object> GetGlobalProperty(const char* name) { 43 static Handle<Object> GetGlobalProperty(const char* name) {
43 Isolate* isolate = CcTest::i_isolate(); 44 Isolate* isolate = CcTest::i_isolate();
44 return JSReceiver::GetProperty(isolate, isolate->global_object(), name) 45 return JSReceiver::GetProperty(isolate, isolate->global_object(), name)
45 .ToHandleChecked(); 46 .ToHandleChecked();
46 } 47 }
47 48
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 CompileRun("foo()"); 667 CompileRun("foo()");
667 CHECK_EQ(2, foo->feedback_vector()->invocation_count()); 668 CHECK_EQ(2, foo->feedback_vector()->invocation_count());
668 CompileRun("bar()"); 669 CompileRun("bar()");
669 CHECK_EQ(2, foo->feedback_vector()->invocation_count()); 670 CHECK_EQ(2, foo->feedback_vector()->invocation_count());
670 CompileRun("foo(); foo()"); 671 CompileRun("foo(); foo()");
671 CHECK_EQ(4, foo->feedback_vector()->invocation_count()); 672 CHECK_EQ(4, foo->feedback_vector()->invocation_count());
672 CompileRun("%BaselineFunctionOnNextCall(foo);"); 673 CompileRun("%BaselineFunctionOnNextCall(foo);");
673 CompileRun("foo();"); 674 CompileRun("foo();");
674 CHECK_EQ(5, foo->feedback_vector()->invocation_count()); 675 CHECK_EQ(5, foo->feedback_vector()->invocation_count());
675 } 676 }
OLDNEW
« no previous file with comments | « test/cctest/test-ast.cc ('k') | test/cctest/test-global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698