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

Side by Side Diff: src/compiler.cc

Issue 526223002: Use Chrome compatible naming for compiler specifics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/arm/instruction-selector-arm.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 } 272 }
273 273
274 274
275 class HOptimizedGraphBuilderWithPositions: public HOptimizedGraphBuilder { 275 class HOptimizedGraphBuilderWithPositions: public HOptimizedGraphBuilder {
276 public: 276 public:
277 explicit HOptimizedGraphBuilderWithPositions(CompilationInfo* info) 277 explicit HOptimizedGraphBuilderWithPositions(CompilationInfo* info)
278 : HOptimizedGraphBuilder(info) { 278 : HOptimizedGraphBuilder(info) {
279 } 279 }
280 280
281 #define DEF_VISIT(type) \ 281 #define DEF_VISIT(type) \
282 virtual void Visit##type(type* node) V8_OVERRIDE { \ 282 virtual void Visit##type(type* node) OVERRIDE { \
283 if (node->position() != RelocInfo::kNoPosition) { \ 283 if (node->position() != RelocInfo::kNoPosition) { \
284 SetSourcePosition(node->position()); \ 284 SetSourcePosition(node->position()); \
285 } \ 285 } \
286 HOptimizedGraphBuilder::Visit##type(node); \ 286 HOptimizedGraphBuilder::Visit##type(node); \
287 } 287 }
288 EXPRESSION_NODE_LIST(DEF_VISIT) 288 EXPRESSION_NODE_LIST(DEF_VISIT)
289 #undef DEF_VISIT 289 #undef DEF_VISIT
290 290
291 #define DEF_VISIT(type) \ 291 #define DEF_VISIT(type) \
292 virtual void Visit##type(type* node) V8_OVERRIDE { \ 292 virtual void Visit##type(type* node) OVERRIDE { \
293 if (node->position() != RelocInfo::kNoPosition) { \ 293 if (node->position() != RelocInfo::kNoPosition) { \
294 SetSourcePosition(node->position()); \ 294 SetSourcePosition(node->position()); \
295 } \ 295 } \
296 HOptimizedGraphBuilder::Visit##type(node); \ 296 HOptimizedGraphBuilder::Visit##type(node); \
297 } 297 }
298 STATEMENT_NODE_LIST(DEF_VISIT) 298 STATEMENT_NODE_LIST(DEF_VISIT)
299 #undef DEF_VISIT 299 #undef DEF_VISIT
300 300
301 #define DEF_VISIT(type) \ 301 #define DEF_VISIT(type) \
302 virtual void Visit##type(type* node) V8_OVERRIDE { \ 302 virtual void Visit##type(type* node) OVERRIDE { \
303 HOptimizedGraphBuilder::Visit##type(node); \ 303 HOptimizedGraphBuilder::Visit##type(node); \
304 } 304 }
305 MODULE_NODE_LIST(DEF_VISIT) 305 MODULE_NODE_LIST(DEF_VISIT)
306 DECLARATION_NODE_LIST(DEF_VISIT) 306 DECLARATION_NODE_LIST(DEF_VISIT)
307 #undef DEF_VISIT 307 #undef DEF_VISIT
308 }; 308 };
309 309
310 310
311 OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { 311 OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
312 DCHECK(isolate()->use_crankshaft()); 312 DCHECK(isolate()->use_crankshaft());
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 AllowHandleDereference allow_deref; 1379 AllowHandleDereference allow_deref;
1380 bool tracing_on = info()->IsStub() 1380 bool tracing_on = info()->IsStub()
1381 ? FLAG_trace_hydrogen_stubs 1381 ? FLAG_trace_hydrogen_stubs
1382 : (FLAG_trace_hydrogen && 1382 : (FLAG_trace_hydrogen &&
1383 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1383 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1384 return (tracing_on && 1384 return (tracing_on &&
1385 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1385 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1386 } 1386 }
1387 1387
1388 } } // namespace v8::internal 1388 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698