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

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

Issue 148153010: Synchronize with r15701. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
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/mips/lithium-mips.h ('k') | src/mksnapshot.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 // 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 stream->Add("= "); 323 stream->Add("= ");
324 constructor()->PrintTo(stream); 324 constructor()->PrintTo(stream);
325 stream->Add(" #%d / ", arity()); 325 stream->Add(" #%d / ", arity());
326 } 326 }
327 327
328 328
329 void LCallNewArray::PrintDataTo(StringStream* stream) { 329 void LCallNewArray::PrintDataTo(StringStream* stream) {
330 stream->Add("= "); 330 stream->Add("= ");
331 constructor()->PrintTo(stream); 331 constructor()->PrintTo(stream);
332 stream->Add(" #%d / ", arity()); 332 stream->Add(" #%d / ", arity());
333 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
334 ElementsKind kind = hydrogen()->elements_kind(); 333 ElementsKind kind = hydrogen()->elements_kind();
335 stream->Add(" (%s) ", ElementsKindToString(kind)); 334 stream->Add(" (%s) ", ElementsKindToString(kind));
336 } 335 }
337 336
338 337
339 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 338 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
340 arguments()->PrintTo(stream); 339 arguments()->PrintTo(stream);
341 stream->Add(" length "); 340 stream->Add(" length ");
342 length()->PrintTo(stream); 341 length()->PrintTo(stream);
343 stream->Add(" index "); 342 stream->Add(" index ");
(...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after
2317 return AssignPointerMap(DefineAsRegister(result)); 2316 return AssignPointerMap(DefineAsRegister(result));
2318 } 2317 }
2319 2318
2320 2319
2321 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 2320 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
2322 LOperand* string = UseRegisterAtStart(instr->value()); 2321 LOperand* string = UseRegisterAtStart(instr->value());
2323 return DefineAsRegister(new(zone()) LStringLength(string)); 2322 return DefineAsRegister(new(zone()) LStringLength(string));
2324 } 2323 }
2325 2324
2326 2325
2327 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) {
2328 info()->MarkAsDeferredCalling();
2329 LAllocateObject* result =
2330 new(zone()) LAllocateObject(TempRegister(), TempRegister());
2331 return AssignPointerMap(DefineAsRegister(result));
2332 }
2333
2334
2335 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { 2326 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
2336 info()->MarkAsDeferredCalling(); 2327 info()->MarkAsDeferredCalling();
2337 LOperand* size = instr->size()->IsConstant() 2328 LOperand* size = instr->size()->IsConstant()
2338 ? UseConstant(instr->size()) 2329 ? UseConstant(instr->size())
2339 : UseTempRegister(instr->size()); 2330 : UseTempRegister(instr->size());
2340 LOperand* temp1 = TempRegister(); 2331 LOperand* temp1 = TempRegister();
2341 LOperand* temp2 = TempRegister(); 2332 LOperand* temp2 = TempRegister();
2342 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); 2333 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2);
2343 return AssignPointerMap(DefineAsRegister(result)); 2334 return AssignPointerMap(DefineAsRegister(result));
2344 } 2335 }
2345 2336
2346 2337
2347 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { 2338 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2348 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, v0), instr); 2339 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, v0), instr);
2349 } 2340 }
2350 2341
2351 2342
2352 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { 2343 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) {
2353 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, v0), instr); 2344 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, v0), instr);
2354 } 2345 }
2355 2346
2356 2347
2357 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) {
2358 LOperand* object = UseFixed(instr->object(), a0);
2359 LOperand* key = UseFixed(instr->key(), a1);
2360 LDeleteProperty* result = new(zone()) LDeleteProperty(object, key);
2361 return MarkAsCall(DefineFixed(result, v0), instr);
2362 }
2363
2364
2365 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2348 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2366 ASSERT(argument_count_ == 0); 2349 ASSERT(argument_count_ == 0);
2367 allocator_->MarkAsOsrEntry(); 2350 allocator_->MarkAsOsrEntry();
2368 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2351 current_block_->last_environment()->set_ast_id(instr->ast_id());
2369 return AssignEnvironment(new(zone()) LOsrEntry); 2352 return AssignEnvironment(new(zone()) LOsrEntry);
2370 } 2353 }
2371 2354
2372 2355
2373 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2356 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2374 LParameter* result = new(zone()) LParameter; 2357 LParameter* result = new(zone()) LParameter;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 } 2510 }
2528 2511
2529 HEnvironment* outer = current_block_->last_environment()-> 2512 HEnvironment* outer = current_block_->last_environment()->
2530 DiscardInlined(false); 2513 DiscardInlined(false);
2531 current_block_->UpdateEnvironment(outer); 2514 current_block_->UpdateEnvironment(outer);
2532 2515
2533 return pop; 2516 return pop;
2534 } 2517 }
2535 2518
2536 2519
2537 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2538 LOperand* key = UseRegisterAtStart(instr->key());
2539 LOperand* object = UseRegisterAtStart(instr->object());
2540 LIn* result = new(zone()) LIn(key, object);
2541 return MarkAsCall(DefineFixed(result, v0), instr);
2542 }
2543
2544
2545 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { 2520 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) {
2546 LOperand* object = UseFixed(instr->enumerable(), a0); 2521 LOperand* object = UseFixed(instr->enumerable(), a0);
2547 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); 2522 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object);
2548 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); 2523 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY);
2549 } 2524 }
2550 2525
2551 2526
2552 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { 2527 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) {
2553 LOperand* map = UseRegister(instr->map()); 2528 LOperand* map = UseRegister(instr->map());
2554 return AssignEnvironment(DefineAsRegister(new(zone()) LForInCacheArray(map))); 2529 return AssignEnvironment(DefineAsRegister(new(zone()) LForInCacheArray(map)));
2555 } 2530 }
2556 2531
2557 2532
2558 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) { 2533 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) {
2559 LOperand* value = UseRegisterAtStart(instr->value()); 2534 LOperand* value = UseRegisterAtStart(instr->value());
2560 LOperand* map = UseRegisterAtStart(instr->map()); 2535 LOperand* map = UseRegisterAtStart(instr->map());
2561 return AssignEnvironment(new(zone()) LCheckMapValue(value, map)); 2536 return AssignEnvironment(new(zone()) LCheckMapValue(value, map));
2562 } 2537 }
2563 2538
2564 2539
2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2540 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2566 LOperand* object = UseRegister(instr->object()); 2541 LOperand* object = UseRegister(instr->object());
2567 LOperand* index = UseRegister(instr->index()); 2542 LOperand* index = UseRegister(instr->index());
2568 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2543 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2569 } 2544 }
2570 2545
2571 2546
2572 } } // namespace v8::internal 2547 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mksnapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698