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

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

Issue 141583011: Kill obsolete HLoadExternalArrayPointer instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.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 3347 matching lines...) Expand 10 before | Expand all | Expand 10 after
3358 __ bind(&done); 3358 __ bind(&done);
3359 } 3359 }
3360 3360
3361 3361
3362 void LCodeGen::DoLoadRoot(LLoadRoot* instr) { 3362 void LCodeGen::DoLoadRoot(LLoadRoot* instr) {
3363 Register result = ToRegister(instr->result()); 3363 Register result = ToRegister(instr->result());
3364 __ LoadRoot(result, instr->index()); 3364 __ LoadRoot(result, instr->index());
3365 } 3365 }
3366 3366
3367 3367
3368 void LCodeGen::DoLoadExternalArrayPointer(
3369 LLoadExternalArrayPointer* instr) {
3370 Register result = ToRegister(instr->result());
3371 Register input = ToRegister(instr->object());
3372 __ mov(result, FieldOperand(input,
3373 ExternalArray::kExternalPointerOffset));
3374 }
3375
3376
3377 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { 3368 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) {
3378 Register arguments = ToRegister(instr->arguments()); 3369 Register arguments = ToRegister(instr->arguments());
3379 Register result = ToRegister(instr->result()); 3370 Register result = ToRegister(instr->result());
3380 if (instr->length()->IsConstantOperand() && 3371 if (instr->length()->IsConstantOperand() &&
3381 instr->index()->IsConstantOperand()) { 3372 instr->index()->IsConstantOperand()) {
3382 int const_index = ToInteger32(LConstantOperand::cast(instr->index())); 3373 int const_index = ToInteger32(LConstantOperand::cast(instr->index()));
3383 int const_length = ToInteger32(LConstantOperand::cast(instr->length())); 3374 int const_length = ToInteger32(LConstantOperand::cast(instr->length()));
3384 int index = (const_length - const_index) + 1; 3375 int index = (const_length - const_index) + 1;
3385 __ mov(result, Operand(arguments, index * kPointerSize)); 3376 __ mov(result, Operand(arguments, index * kPointerSize));
3386 } else { 3377 } else {
(...skipping 2961 matching lines...) Expand 10 before | Expand all | Expand 10 after
6348 FixedArray::kHeaderSize - kPointerSize)); 6339 FixedArray::kHeaderSize - kPointerSize));
6349 __ bind(&done); 6340 __ bind(&done);
6350 } 6341 }
6351 6342
6352 6343
6353 #undef __ 6344 #undef __
6354 6345
6355 } } // namespace v8::internal 6346 } } // namespace v8::internal
6356 6347
6357 #endif // V8_TARGET_ARCH_IA32 6348 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698