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

Side by Side Diff: src/mips/stub-cache-mips.cc

Issue 11817017: Additional work to get array literal allocation tracking working, even with --always-opt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code cleanup Created 7 years, 11 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
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 3389 matching lines...) Expand 10 before | Expand all | Expand 10 after
3400 // -- a3 : scratch 3400 // -- a3 : scratch
3401 // ----------------------------------- 3401 // -----------------------------------
3402 Label miss; 3402 Label miss;
3403 __ JumpIfSmi(a2, &miss); 3403 __ JumpIfSmi(a2, &miss);
3404 3404
3405 int receiver_count = receiver_maps->length(); 3405 int receiver_count = receiver_maps->length();
3406 __ lw(a3, FieldMemOperand(a2, HeapObject::kMapOffset)); 3406 __ lw(a3, FieldMemOperand(a2, HeapObject::kMapOffset));
3407 for (int i = 0; i < receiver_count; ++i) { 3407 for (int i = 0; i < receiver_count; ++i) {
3408 if (transitioned_maps->at(i).is_null()) { 3408 if (transitioned_maps->at(i).is_null()) {
3409 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq, 3409 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq,
3410 a3, Operand(receiver_maps->at(i))); 3410 a3, Operand(receiver_maps->at(i)));
danno 2013/01/10 22:58:59 Stray whitespace change?
mvstanton 2013/01/11 13:43:01 Done.
3411 } else { 3411 } else {
3412 Label next_map; 3412 Label next_map;
3413 __ Branch(&next_map, ne, a3, Operand(receiver_maps->at(i))); 3413 __ Branch(&next_map, ne, a3, Operand(receiver_maps->at(i)));
3414 __ li(a3, Operand(transitioned_maps->at(i))); 3414 __ li(a3, Operand(transitioned_maps->at(i)));
3415 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET); 3415 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET);
3416 __ bind(&next_map); 3416 __ bind(&next_map);
3417 } 3417 }
3418 } 3418 }
3419 3419
3420 __ bind(&miss); 3420 __ bind(&miss);
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
4424 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 4424 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
4425 } 4425 }
4426 } 4426 }
4427 4427
4428 4428
4429 #undef __ 4429 #undef __
4430 4430
4431 } } // namespace v8::internal 4431 } } // namespace v8::internal
4432 4432
4433 #endif // V8_TARGET_ARCH_MIPS 4433 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698