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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 141893002: We no longer need to recover type cells from the oracle. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 11 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/ia32/lithium-codegen-ia32.cc ('k') | src/type-info.h » ('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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 3954 matching lines...) Expand 10 before | Expand all | Expand 10 after
3965 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); 3965 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
3966 } 3966 }
3967 3967
3968 3968
3969 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { 3969 void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
3970 ASSERT(ToRegister(instr->context()).is(cp)); 3970 ASSERT(ToRegister(instr->context()).is(cp));
3971 ASSERT(ToRegister(instr->constructor()).is(a1)); 3971 ASSERT(ToRegister(instr->constructor()).is(a1));
3972 ASSERT(ToRegister(instr->result()).is(v0)); 3972 ASSERT(ToRegister(instr->result()).is(v0));
3973 3973
3974 __ li(a0, Operand(instr->arity())); 3974 __ li(a0, Operand(instr->arity()));
3975 __ li(a2, Operand(instr->hydrogen()->property_cell())); 3975 __ li(a2, Operand(factory()->undefined_value()));
3976 ElementsKind kind = instr->hydrogen()->elements_kind(); 3976 ElementsKind kind = instr->hydrogen()->elements_kind();
3977 AllocationSiteOverrideMode override_mode = 3977 AllocationSiteOverrideMode override_mode =
3978 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) 3978 (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE)
3979 ? DISABLE_ALLOCATION_SITES 3979 ? DISABLE_ALLOCATION_SITES
3980 : DONT_OVERRIDE; 3980 : DONT_OVERRIDE;
3981 3981
3982 if (instr->arity() == 0) { 3982 if (instr->arity() == 0) {
3983 ArrayNoArgumentConstructorStub stub(kind, override_mode); 3983 ArrayNoArgumentConstructorStub stub(kind, override_mode);
3984 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); 3984 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
3985 } else if (instr->arity() == 1) { 3985 } else if (instr->arity() == 1) {
(...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after
5822 __ Subu(scratch, result, scratch); 5822 __ Subu(scratch, result, scratch);
5823 __ lw(result, FieldMemOperand(scratch, 5823 __ lw(result, FieldMemOperand(scratch,
5824 FixedArray::kHeaderSize - kPointerSize)); 5824 FixedArray::kHeaderSize - kPointerSize));
5825 __ bind(&done); 5825 __ bind(&done);
5826 } 5826 }
5827 5827
5828 5828
5829 #undef __ 5829 #undef __
5830 5830
5831 } } // namespace v8::internal 5831 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698