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

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

Issue 18881005: MIPS: Replace custom builtin invocation instructions by a generic version. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 5 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/mips/lithium-mips.h ('k') | no next file » | 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 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2347 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { 2347 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2348 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, v0), instr); 2348 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, v0), instr);
2349 } 2349 }
2350 2350
2351 2351
2352 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { 2352 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) {
2353 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, v0), instr); 2353 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, v0), instr);
2354 } 2354 }
2355 2355
2356 2356
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) { 2357 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2366 ASSERT(argument_count_ == 0); 2358 ASSERT(argument_count_ == 0);
2367 allocator_->MarkAsOsrEntry(); 2359 allocator_->MarkAsOsrEntry();
2368 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2360 current_block_->last_environment()->set_ast_id(instr->ast_id());
2369 return AssignEnvironment(new(zone()) LOsrEntry); 2361 return AssignEnvironment(new(zone()) LOsrEntry);
2370 } 2362 }
2371 2363
2372 2364
2373 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2365 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2374 LParameter* result = new(zone()) LParameter; 2366 LParameter* result = new(zone()) LParameter;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 } 2519 }
2528 2520
2529 HEnvironment* outer = current_block_->last_environment()-> 2521 HEnvironment* outer = current_block_->last_environment()->
2530 DiscardInlined(false); 2522 DiscardInlined(false);
2531 current_block_->UpdateEnvironment(outer); 2523 current_block_->UpdateEnvironment(outer);
2532 2524
2533 return pop; 2525 return pop;
2534 } 2526 }
2535 2527
2536 2528
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) { 2529 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) {
2546 LOperand* object = UseFixed(instr->enumerable(), a0); 2530 LOperand* object = UseFixed(instr->enumerable(), a0);
2547 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); 2531 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object);
2548 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); 2532 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY);
2549 } 2533 }
2550 2534
2551 2535
2552 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { 2536 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) {
2553 LOperand* map = UseRegister(instr->map()); 2537 LOperand* map = UseRegister(instr->map());
2554 return AssignEnvironment(DefineAsRegister(new(zone()) LForInCacheArray(map))); 2538 return AssignEnvironment(DefineAsRegister(new(zone()) LForInCacheArray(map)));
2555 } 2539 }
2556 2540
2557 2541
2558 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) { 2542 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) {
2559 LOperand* value = UseRegisterAtStart(instr->value()); 2543 LOperand* value = UseRegisterAtStart(instr->value());
2560 LOperand* map = UseRegisterAtStart(instr->map()); 2544 LOperand* map = UseRegisterAtStart(instr->map());
2561 return AssignEnvironment(new(zone()) LCheckMapValue(value, map)); 2545 return AssignEnvironment(new(zone()) LCheckMapValue(value, map));
2562 } 2546 }
2563 2547
2564 2548
2565 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2549 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2566 LOperand* object = UseRegister(instr->object()); 2550 LOperand* object = UseRegister(instr->object());
2567 LOperand* index = UseRegister(instr->index()); 2551 LOperand* index = UseRegister(instr->index());
2568 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2552 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2569 } 2553 }
2570 2554
2571 2555
2572 } } // namespace v8::internal 2556 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698