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

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

Issue 12300018: Made Isolate a mandatory parameter for everything Handle-related. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed CreateCode calls. Be nicer to MIPS. Created 7 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/messages.cc ('k') | src/mips/lithium-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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 __ Drop(1); 1164 __ Drop(1);
1165 __ jmp(&exit); 1165 __ jmp(&exit);
1166 1166
1167 // We got a fixed array in register v0. Iterate through that. 1167 // We got a fixed array in register v0. Iterate through that.
1168 Label non_proxy; 1168 Label non_proxy;
1169 __ bind(&fixed_array); 1169 __ bind(&fixed_array);
1170 1170
1171 Handle<JSGlobalPropertyCell> cell = 1171 Handle<JSGlobalPropertyCell> cell =
1172 isolate()->factory()->NewJSGlobalPropertyCell( 1172 isolate()->factory()->NewJSGlobalPropertyCell(
1173 Handle<Object>( 1173 Handle<Object>(
1174 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker))); 1174 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker),
1175 isolate()));
1175 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); 1176 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell);
1176 __ LoadHeapObject(a1, cell); 1177 __ LoadHeapObject(a1, cell);
1177 __ li(a2, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker))); 1178 __ li(a2, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker)));
1178 __ sw(a2, FieldMemOperand(a1, JSGlobalPropertyCell::kValueOffset)); 1179 __ sw(a2, FieldMemOperand(a1, JSGlobalPropertyCell::kValueOffset));
1179 1180
1180 __ li(a1, Operand(Smi::FromInt(1))); // Smi indicates slow check 1181 __ li(a1, Operand(Smi::FromInt(1))); // Smi indicates slow check
1181 __ lw(a2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object 1182 __ lw(a2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object
1182 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); 1183 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE);
1183 __ GetObjectType(a2, a3, a3); 1184 __ GetObjectType(a2, a3, a3);
1184 __ Branch(&non_proxy, gt, a3, Operand(LAST_JS_PROXY_TYPE)); 1185 __ Branch(&non_proxy, gt, a3, Operand(LAST_JS_PROXY_TYPE));
(...skipping 3400 matching lines...) Expand 10 before | Expand all | Expand 10 after
4585 *context_length = 0; 4586 *context_length = 0;
4586 return previous_; 4587 return previous_;
4587 } 4588 }
4588 4589
4589 4590
4590 #undef __ 4591 #undef __
4591 4592
4592 } } // namespace v8::internal 4593 } } // namespace v8::internal
4593 4594
4594 #endif // V8_TARGET_ARCH_MIPS 4595 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698