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

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

Issue 11299004: Use the property load IC for accessing the array length. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added comments. Created 8 years, 1 month 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/ic.cc ('k') | src/objects.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. 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 4580 matching lines...) Expand 10 before | Expand all | Expand 10 after
4591 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { 4591 void LCodeGen::DoCheckMaps(LCheckMaps* instr) {
4592 Register scratch = scratch0(); 4592 Register scratch = scratch0();
4593 LOperand* input = instr->value(); 4593 LOperand* input = instr->value();
4594 ASSERT(input->IsRegister()); 4594 ASSERT(input->IsRegister());
4595 Register reg = ToRegister(input); 4595 Register reg = ToRegister(input);
4596 Label success; 4596 Label success;
4597 SmallMapList* map_set = instr->hydrogen()->map_set(); 4597 SmallMapList* map_set = instr->hydrogen()->map_set();
4598 for (int i = 0; i < map_set->length() - 1; i++) { 4598 for (int i = 0; i < map_set->length() - 1; i++) {
4599 Handle<Map> map = map_set->at(i); 4599 Handle<Map> map = map_set->at(i);
4600 __ CompareMapAndBranch( 4600 __ CompareMapAndBranch(
4601 reg, scratch, map, &success, eq, &success, REQUIRE_EXACT_MAP); 4601 reg, scratch, map, &success, eq, &success, instr->hydrogen()->mode());
4602 } 4602 }
4603 Handle<Map> map = map_set->last(); 4603 Handle<Map> map = map_set->last();
4604 DoCheckMapCommon(reg, scratch, map, REQUIRE_EXACT_MAP, instr->environment()); 4604 DoCheckMapCommon(reg, scratch, map, instr->hydrogen()->mode(),
4605 instr->environment());
4605 __ bind(&success); 4606 __ bind(&success);
4606 } 4607 }
4607 4608
4608 4609
4609 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) { 4610 void LCodeGen::DoClampDToUint8(LClampDToUint8* instr) {
4610 DoubleRegister value_reg = ToDoubleRegister(instr->unclamped()); 4611 DoubleRegister value_reg = ToDoubleRegister(instr->unclamped());
4611 Register result_reg = ToRegister(instr->result()); 4612 Register result_reg = ToRegister(instr->result());
4612 DoubleRegister temp_reg = ToDoubleRegister(instr->temp()); 4613 DoubleRegister temp_reg = ToDoubleRegister(instr->temp());
4613 __ ClampDoubleToUint8(result_reg, value_reg, temp_reg); 4614 __ ClampDoubleToUint8(result_reg, value_reg, temp_reg);
4614 } 4615 }
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
5460 __ Subu(scratch, result, scratch); 5461 __ Subu(scratch, result, scratch);
5461 __ lw(result, FieldMemOperand(scratch, 5462 __ lw(result, FieldMemOperand(scratch,
5462 FixedArray::kHeaderSize - kPointerSize)); 5463 FixedArray::kHeaderSize - kPointerSize));
5463 __ bind(&done); 5464 __ bind(&done);
5464 } 5465 }
5465 5466
5466 5467
5467 #undef __ 5468 #undef __
5468 5469
5469 } } // namespace v8::internal 5470 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698