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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 300893003: Refactor HType to get rid of various hacks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix compilation. Created 6 years, 6 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/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.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 "v8.h" 5 #include "v8.h"
6 6
7 #include "code-stubs.h" 7 #include "code-stubs.h"
8 #include "hydrogen.h" 8 #include "hydrogen.h"
9 #include "lithium.h" 9 #include "lithium.h"
10 10
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 template<> 1413 template<>
1414 HValue* CodeStubGraphBuilder<FastNewContextStub>::BuildCodeStub() { 1414 HValue* CodeStubGraphBuilder<FastNewContextStub>::BuildCodeStub() {
1415 int length = casted_stub()->slots() + Context::MIN_CONTEXT_SLOTS; 1415 int length = casted_stub()->slots() + Context::MIN_CONTEXT_SLOTS;
1416 1416
1417 // Get the function. 1417 // Get the function.
1418 HParameter* function = GetParameter(FastNewContextStub::kFunction); 1418 HParameter* function = GetParameter(FastNewContextStub::kFunction);
1419 1419
1420 // Allocate the context in new space. 1420 // Allocate the context in new space.
1421 HAllocate* function_context = Add<HAllocate>( 1421 HAllocate* function_context = Add<HAllocate>(
1422 Add<HConstant>(length * kPointerSize + FixedArray::kHeaderSize), 1422 Add<HConstant>(length * kPointerSize + FixedArray::kHeaderSize),
1423 HType::Tagged(), NOT_TENURED, FIXED_ARRAY_TYPE); 1423 HType::HeapObject(), NOT_TENURED, FIXED_ARRAY_TYPE);
1424 1424
1425 // Set up the object header. 1425 // Set up the object header.
1426 AddStoreMapConstant(function_context, 1426 AddStoreMapConstant(function_context,
1427 isolate()->factory()->function_context_map()); 1427 isolate()->factory()->function_context_map());
1428 Add<HStoreNamedField>(function_context, 1428 Add<HStoreNamedField>(function_context,
1429 HObjectAccess::ForFixedArrayLength(), 1429 HObjectAccess::ForFixedArrayLength(),
1430 Add<HConstant>(length)); 1430 Add<HConstant>(length));
1431 1431
1432 // Set up the fixed slots. 1432 // Set up the fixed slots.
1433 Add<HStoreNamedField>(function_context, 1433 Add<HStoreNamedField>(function_context,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 return BuildRegExpConstructResult(length, index, input); 1493 return BuildRegExpConstructResult(length, index, input);
1494 } 1494 }
1495 1495
1496 1496
1497 Handle<Code> RegExpConstructResultStub::GenerateCode() { 1497 Handle<Code> RegExpConstructResultStub::GenerateCode() {
1498 return DoGenerateCode(this); 1498 return DoGenerateCode(this);
1499 } 1499 }
1500 1500
1501 1501
1502 } } // namespace v8::internal 1502 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698