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

Side by Side Diff: src/typing.cc

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-upload - catch up to 8/19 level 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/typing.h" 5 #include "src/typing.h"
6 6
7 #include "src/frames.h" 7 #include "src/frames.h"
8 #include "src/frames-inl.h" 8 #include "src/frames-inl.h"
9 #include "src/ostreams.h" 9 #include "src/ostreams.h"
10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move 10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 ExitEffects(); 369 ExitEffects();
370 then_effects.Alt(else_effects); 370 then_effects.Alt(else_effects);
371 store_.Seq(then_effects); 371 store_.Seq(then_effects);
372 372
373 NarrowType(expr, Bounds::Either( 373 NarrowType(expr, Bounds::Either(
374 expr->then_expression()->bounds(), 374 expr->then_expression()->bounds(),
375 expr->else_expression()->bounds(), zone())); 375 expr->else_expression()->bounds(), zone()));
376 } 376 }
377 377
378 378
379 // simulated build generates warning (fails compile) without pragma
380 // when built using gcc 4.4.6 on intel linux
381 #pragma GCC diagnostic ignored "-Wuninitialized"
379 void AstTyper::VisitVariableProxy(VariableProxy* expr) { 382 void AstTyper::VisitVariableProxy(VariableProxy* expr) {
380 Variable* var = expr->var(); 383 Variable* var = expr->var();
381 if (var->IsStackAllocated()) { 384 if (var->IsStackAllocated()) {
382 NarrowType(expr, store_.LookupBounds(variable_index(var))); 385 NarrowType(expr, store_.LookupBounds(variable_index(var)));
383 } 386 }
384 } 387 }
385 388
386 389
387 void AstTyper::VisitLiteral(Literal* expr) { 390 void AstTyper::VisitLiteral(Literal* expr) {
388 Type* type = Type::Constant(expr->value(), zone()); 391 Type* type = Type::Constant(expr->value(), zone());
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 void AstTyper::VisitModuleUrl(ModuleUrl* module) { 777 void AstTyper::VisitModuleUrl(ModuleUrl* module) {
775 } 778 }
776 779
777 780
778 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { 781 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) {
779 RECURSE(Visit(stmt->body())); 782 RECURSE(Visit(stmt->body()));
780 } 783 }
781 784
782 785
783 } } // namespace v8::internal 786 } } // namespace v8::internal
OLDNEW
« src/hydrogen-bch.cc ('K') | « src/simulator.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698