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

Side by Side Diff: src/lithium.cc

Issue 71783003: Reland and fix "Add support for keyed-call on arrays of fast elements" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Test + fix Created 7 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/isolate.cc ('k') | src/objects-inl.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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 LConstantOperand* LChunk::DefineConstantOperand(HConstant* constant) { 365 LConstantOperand* LChunk::DefineConstantOperand(HConstant* constant) {
366 return LConstantOperand::Create(constant->id(), zone()); 366 return LConstantOperand::Create(constant->id(), zone());
367 } 367 }
368 368
369 369
370 int LChunk::GetParameterStackSlot(int index) const { 370 int LChunk::GetParameterStackSlot(int index) const {
371 // The receiver is at index 0, the first parameter at index 1, so we 371 // The receiver is at index 0, the first parameter at index 1, so we
372 // shift all parameter indexes down by the number of parameters, and 372 // shift all parameter indexes down by the number of parameters, and
373 // make sure they end up negative so they are distinguishable from 373 // make sure they end up negative so they are distinguishable from
374 // spill slots. 374 // spill slots.
375 int result = index - info()->scope()->num_parameters() - 1; 375 int result = index - info()->num_parameters() - 1;
376
376 ASSERT(result < 0); 377 ASSERT(result < 0);
377 return result; 378 return result;
378 } 379 }
379 380
380 381
381 // A parameter relative to ebp in the arguments stub. 382 // A parameter relative to ebp in the arguments stub.
382 int LChunk::ParameterAt(int index) { 383 int LChunk::ParameterAt(int index) {
383 ASSERT(-1 <= index); // -1 is the receiver. 384 ASSERT(-1 <= index); // -1 is the receiver.
384 return (1 + info()->scope()->num_parameters() - index) * 385 return (1 + info()->scope()->num_parameters() - index) *
385 kPointerSize; 386 kPointerSize;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 501
501 502
502 LPhase::~LPhase() { 503 LPhase::~LPhase() {
503 if (ShouldProduceTraceOutput()) { 504 if (ShouldProduceTraceOutput()) {
504 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 505 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
505 } 506 }
506 } 507 }
507 508
508 509
509 } } // namespace v8::internal 510 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698