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

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

Issue 10442015: Rollback of r11638, r11636 on trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 7 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/code-stubs-mips.cc ('k') | src/mips/full-codegen-mips.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 void StubRuntimeCallHelper::AfterCall(MacroAssembler* masm) const { 66 void StubRuntimeCallHelper::AfterCall(MacroAssembler* masm) const {
67 masm->LeaveFrame(StackFrame::INTERNAL); 67 masm->LeaveFrame(StackFrame::INTERNAL);
68 ASSERT(masm->has_frame()); 68 ASSERT(masm->has_frame());
69 masm->set_has_frame(false); 69 masm->set_has_frame(false);
70 } 70 }
71 71
72 // ------------------------------------------------------------------------- 72 // -------------------------------------------------------------------------
73 // Code generators 73 // Code generators
74 74
75 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( 75 void ElementsTransitionGenerator::GenerateSmiOnlyToObject(
76 MacroAssembler* masm) { 76 MacroAssembler* masm) {
77 // ----------- S t a t e ------------- 77 // ----------- S t a t e -------------
78 // -- a0 : value 78 // -- a0 : value
79 // -- a1 : key 79 // -- a1 : key
80 // -- a2 : receiver 80 // -- a2 : receiver
81 // -- ra : return address 81 // -- ra : return address
82 // -- a3 : target map, scratch for subsequent call 82 // -- a3 : target map, scratch for subsequent call
83 // -- t0 : scratch (elements) 83 // -- t0 : scratch (elements)
84 // ----------------------------------- 84 // -----------------------------------
85 // Set transitioned map. 85 // Set transitioned map.
86 __ sw(a3, FieldMemOperand(a2, HeapObject::kMapOffset)); 86 __ sw(a3, FieldMemOperand(a2, HeapObject::kMapOffset));
87 __ RecordWriteField(a2, 87 __ RecordWriteField(a2,
88 HeapObject::kMapOffset, 88 HeapObject::kMapOffset,
89 a3, 89 a3,
90 t5, 90 t5,
91 kRAHasNotBeenSaved, 91 kRAHasNotBeenSaved,
92 kDontSaveFPRegs, 92 kDontSaveFPRegs,
93 EMIT_REMEMBERED_SET, 93 EMIT_REMEMBERED_SET,
94 OMIT_SMI_CHECK); 94 OMIT_SMI_CHECK);
95 } 95 }
96 96
97 97
98 void ElementsTransitionGenerator::GenerateSmiToDouble( 98 void ElementsTransitionGenerator::GenerateSmiOnlyToDouble(
99 MacroAssembler* masm, Label* fail) { 99 MacroAssembler* masm, Label* fail) {
100 // ----------- S t a t e ------------- 100 // ----------- S t a t e -------------
101 // -- a0 : value 101 // -- a0 : value
102 // -- a1 : key 102 // -- a1 : key
103 // -- a2 : receiver 103 // -- a2 : receiver
104 // -- ra : return address 104 // -- ra : return address
105 // -- a3 : target map, scratch for subsequent call 105 // -- a3 : target map, scratch for subsequent call
106 // -- t0 : scratch (elements) 106 // -- t0 : scratch (elements)
107 // ----------------------------------- 107 // -----------------------------------
108 Label loop, entry, convert_hole, gc_required, only_change_map, done; 108 Label loop, entry, convert_hole, gc_required, only_change_map, done;
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 __ Addu(at, string, index); 444 __ Addu(at, string, index);
445 __ lbu(result, MemOperand(at)); 445 __ lbu(result, MemOperand(at));
446 __ bind(&done); 446 __ bind(&done);
447 } 447 }
448 448
449 #undef __ 449 #undef __
450 450
451 } } // namespace v8::internal 451 } } // namespace v8::internal
452 452
453 #endif // V8_TARGET_ARCH_MIPS 453 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698