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

Side by Side Diff: test/cctest/compiler/function-tester.h

Issue 893533003: Revert "Make GCC happy again." and "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/compiler/codegen-tester.cc ('k') | test/cctest/compiler/graph-builder-tester.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ 5 #ifndef V8_CCTEST_COMPILER_FUNCTION_TESTER_H_
6 #define V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ 6 #define V8_CCTEST_COMPILER_FUNCTION_TESTER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 #include "test/cctest/cctest.h" 9 #include "test/cctest/cctest.h"
10 10
(...skipping 18 matching lines...) Expand all
29 class FunctionTester : public InitializedHandleScope { 29 class FunctionTester : public InitializedHandleScope {
30 public: 30 public:
31 explicit FunctionTester(const char* source, uint32_t flags = 0) 31 explicit FunctionTester(const char* source, uint32_t flags = 0)
32 : isolate(main_isolate()), 32 : isolate(main_isolate()),
33 function((FLAG_allow_natives_syntax = true, NewFunction(source))), 33 function((FLAG_allow_natives_syntax = true, NewFunction(source))),
34 flags_(flags) { 34 flags_(flags) {
35 Compile(function); 35 Compile(function);
36 const uint32_t supported_flags = CompilationInfo::kContextSpecializing | 36 const uint32_t supported_flags = CompilationInfo::kContextSpecializing |
37 CompilationInfo::kInliningEnabled | 37 CompilationInfo::kInliningEnabled |
38 CompilationInfo::kTypingEnabled; 38 CompilationInfo::kTypingEnabled;
39 CHECK_EQ(0u, flags_ & ~supported_flags); 39 CHECK_EQ(0, flags_ & ~supported_flags);
40 } 40 }
41 41
42 explicit FunctionTester(Graph* graph) 42 explicit FunctionTester(Graph* graph)
43 : isolate(main_isolate()), 43 : isolate(main_isolate()),
44 function(NewFunction("(function(a,b){})")), 44 function(NewFunction("(function(a,b){})")),
45 flags_(0) { 45 flags_(0) {
46 CompileGraph(graph); 46 CompileGraph(graph);
47 } 47 }
48 48
49 Isolate* isolate; 49 Isolate* isolate;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 CHECK(!code.is_null()); 220 CHECK(!code.is_null());
221 function->ReplaceCode(*code); 221 function->ReplaceCode(*code);
222 return function; 222 return function;
223 } 223 }
224 }; 224 };
225 } 225 }
226 } 226 }
227 } // namespace v8::internal::compiler 227 } // namespace v8::internal::compiler
228 228
229 #endif // V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ 229 #endif // V8_CCTEST_COMPILER_FUNCTION_TESTER_H_
OLDNEW
« no previous file with comments | « test/cctest/compiler/codegen-tester.cc ('k') | test/cctest/compiler/graph-builder-tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698