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

Side by Side Diff: src/hydrogen.cc

Issue 18184005: Fix GCC 4.2 errors introduced with revision 15379. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | 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 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 // Get the global context, then the native context 1699 // Get the global context, then the native context
1700 HInstruction* global_object = Add<HGlobalObject>(context); 1700 HInstruction* global_object = Add<HGlobalObject>(context);
1701 HObjectAccess access = HObjectAccess::ForJSObjectOffset( 1701 HObjectAccess access = HObjectAccess::ForJSObjectOffset(
1702 GlobalObject::kNativeContextOffset); 1702 GlobalObject::kNativeContextOffset);
1703 return AddLoad(global_object, access); 1703 return AddLoad(global_object, access);
1704 } 1704 }
1705 1705
1706 1706
1707 HInstruction* HGraphBuilder::BuildGetArrayFunction(HValue* context) { 1707 HInstruction* HGraphBuilder::BuildGetArrayFunction(HValue* context) {
1708 HInstruction* native_context = BuildGetNativeContext(context); 1708 HInstruction* native_context = BuildGetNativeContext(context);
1709 HInstruction* index = Add<HConstant>(Context::ARRAY_FUNCTION_INDEX); 1709 HInstruction* index =
1710 Add<HConstant>(static_cast<int32_t>(Context::ARRAY_FUNCTION_INDEX));
1710 return Add<HLoadKeyed>( 1711 return Add<HLoadKeyed>(
1711 native_context, index, static_cast<HValue*>(NULL), FAST_ELEMENTS); 1712 native_context, index, static_cast<HValue*>(NULL), FAST_ELEMENTS);
1712 } 1713 }
1713 1714
1714 1715
1715 HGraphBuilder::JSArrayBuilder::JSArrayBuilder(HGraphBuilder* builder, 1716 HGraphBuilder::JSArrayBuilder::JSArrayBuilder(HGraphBuilder* builder,
1716 ElementsKind kind, 1717 ElementsKind kind,
1717 HValue* allocation_site_payload, 1718 HValue* allocation_site_payload,
1718 bool disable_allocation_sites) : 1719 bool disable_allocation_sites) :
1719 builder_(builder), 1720 builder_(builder),
(...skipping 13 matching lines...) Expand all
1733 kind_(kind), 1734 kind_(kind),
1734 mode_(DONT_TRACK_ALLOCATION_SITE), 1735 mode_(DONT_TRACK_ALLOCATION_SITE),
1735 allocation_site_payload_(NULL), 1736 allocation_site_payload_(NULL),
1736 constructor_function_(constructor_function) { 1737 constructor_function_(constructor_function) {
1737 } 1738 }
1738 1739
1739 1740
1740 HValue* HGraphBuilder::JSArrayBuilder::EmitMapCode(HValue* context) { 1741 HValue* HGraphBuilder::JSArrayBuilder::EmitMapCode(HValue* context) {
1741 HInstruction* native_context = builder()->BuildGetNativeContext(context); 1742 HInstruction* native_context = builder()->BuildGetNativeContext(context);
1742 1743
1743 HInstruction* index = builder()->Add<HConstant>(Context::JS_ARRAY_MAPS_INDEX); 1744 HInstruction* index = builder()->Add<HConstant>(
1745 static_cast<int32_t>(Context::JS_ARRAY_MAPS_INDEX));
1744 1746
1745 HInstruction* map_array = builder()->Add<HLoadKeyed>( 1747 HInstruction* map_array = builder()->Add<HLoadKeyed>(
1746 native_context, index, static_cast<HValue*>(NULL), FAST_ELEMENTS); 1748 native_context, index, static_cast<HValue*>(NULL), FAST_ELEMENTS);
1747 1749
1748 HInstruction* kind_index = builder()->Add<HConstant>(kind_); 1750 HInstruction* kind_index = builder()->Add<HConstant>(kind_);
1749 1751
1750 return builder()->Add<HLoadKeyed>( 1752 return builder()->Add<HLoadKeyed>(
1751 map_array, kind_index, static_cast<HValue*>(NULL), FAST_ELEMENTS); 1753 map_array, kind_index, static_cast<HValue*>(NULL), FAST_ELEMENTS);
1752 } 1754 }
1753 1755
(...skipping 9477 matching lines...) Expand 10 before | Expand all | Expand 10 after
11231 if (ShouldProduceTraceOutput()) { 11233 if (ShouldProduceTraceOutput()) {
11232 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11234 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11233 } 11235 }
11234 11236
11235 #ifdef DEBUG 11237 #ifdef DEBUG
11236 graph_->Verify(false); // No full verify. 11238 graph_->Verify(false); // No full verify.
11237 #endif 11239 #endif
11238 } 11240 }
11239 11241
11240 } } // namespace v8::internal 11242 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698