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

Side by Side Diff: src/arm/lithium-arm.cc

Issue 1259963002: [stubs] Don't pass name to Load/StoreGlobalViaContext stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix rebase Created 5 years, 4 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
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/arm/lithium-codegen-arm.h" 9 #include "src/arm/lithium-codegen-arm.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 324 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
325 arguments()->PrintTo(stream); 325 arguments()->PrintTo(stream);
326 stream->Add(" length "); 326 stream->Add(" length ");
327 length()->PrintTo(stream); 327 length()->PrintTo(stream);
328 stream->Add(" index "); 328 stream->Add(" index ");
329 index()->PrintTo(stream); 329 index()->PrintTo(stream);
330 } 330 }
331 331
332 332
333 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { 333 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) {
334 stream->Add(String::cast(*name())->ToCString().get()); 334 stream->Add("depth:%d slot:%d", depth(), slot_index());
335 stream->Add(" depth:%d slot:%d", depth(), slot_index());
336 } 335 }
337 336
338 337
339 void LStoreNamedField::PrintDataTo(StringStream* stream) { 338 void LStoreNamedField::PrintDataTo(StringStream* stream) {
340 object()->PrintTo(stream); 339 object()->PrintTo(stream);
341 std::ostringstream os; 340 std::ostringstream os;
342 os << hydrogen()->access() << " <- "; 341 os << hydrogen()->access() << " <- ";
343 stream->Add(os.str().c_str()); 342 stream->Add(os.str().c_str());
344 value()->PrintTo(stream); 343 value()->PrintTo(stream);
345 } 344 }
346 345
347 346
348 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { 347 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) {
349 object()->PrintTo(stream); 348 object()->PrintTo(stream);
350 stream->Add("."); 349 stream->Add(".");
351 stream->Add(String::cast(*name())->ToCString().get()); 350 stream->Add(String::cast(*name())->ToCString().get());
352 stream->Add(" <- "); 351 stream->Add(" <- ");
353 value()->PrintTo(stream); 352 value()->PrintTo(stream);
354 } 353 }
355 354
356 355
357 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { 356 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) {
358 stream->Add(String::cast(*name())->ToCString().get()); 357 stream->Add("depth:%d slot:%d <- ", depth(), slot_index());
359 stream->Add(" <- ");
360 value()->PrintTo(stream); 358 value()->PrintTo(stream);
361 stream->Add(" depth:%d slot:%d", depth(), slot_index());
362 } 359 }
363 360
364 361
365 void LLoadKeyed::PrintDataTo(StringStream* stream) { 362 void LLoadKeyed::PrintDataTo(StringStream* stream) {
366 elements()->PrintTo(stream); 363 elements()->PrintTo(stream);
367 stream->Add("["); 364 stream->Add("[");
368 key()->PrintTo(stream); 365 key()->PrintTo(stream);
369 if (hydrogen()->IsDehoisted()) { 366 if (hydrogen()->IsDehoisted()) {
370 stream->Add(" + %d]", base_offset()); 367 stream->Add(" + %d]", base_offset());
371 } else { 368 } else {
(...skipping 2350 matching lines...) Expand 10 before | Expand all | Expand 10 after
2722 HAllocateBlockContext* instr) { 2719 HAllocateBlockContext* instr) {
2723 LOperand* context = UseFixed(instr->context(), cp); 2720 LOperand* context = UseFixed(instr->context(), cp);
2724 LOperand* function = UseRegisterAtStart(instr->function()); 2721 LOperand* function = UseRegisterAtStart(instr->function());
2725 LAllocateBlockContext* result = 2722 LAllocateBlockContext* result =
2726 new(zone()) LAllocateBlockContext(context, function); 2723 new(zone()) LAllocateBlockContext(context, function);
2727 return MarkAsCall(DefineFixed(result, cp), instr); 2724 return MarkAsCall(DefineFixed(result, cp), instr);
2728 } 2725 }
2729 2726
2730 } // namespace internal 2727 } // namespace internal
2731 } // namespace v8 2728 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698