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

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

Issue 9722020: Enable snapshots on MIPS. This is based on (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 9 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 2595 matching lines...) Expand 10 before | Expand all | Expand 10 after
2606 // Calculate location of the first key name. 2606 // Calculate location of the first key name.
2607 __ Addu(t0, 2607 __ Addu(t0,
2608 t0, 2608 t0,
2609 Operand(FixedArray::kHeaderSize - kHeapObjectTag + 2609 Operand(FixedArray::kHeaderSize - kHeapObjectTag +
2610 DescriptorArray::kFirstIndex * kPointerSize)); 2610 DescriptorArray::kFirstIndex * kPointerSize));
2611 // Loop through all the keys in the descriptor array. If one of these is the 2611 // Loop through all the keys in the descriptor array. If one of these is the
2612 // symbol valueOf the result is false. 2612 // symbol valueOf the result is false.
2613 Label entry, loop; 2613 Label entry, loop;
2614 // The use of t2 to store the valueOf symbol asumes that it is not otherwise 2614 // The use of t2 to store the valueOf symbol asumes that it is not otherwise
2615 // used in the loop below. 2615 // used in the loop below.
2616 __ li(t2, Operand(FACTORY->value_of_symbol())); 2616 __ LoadRoot(t2, Heap::kvalue_of_symbolRootIndex);
2617 __ jmp(&entry); 2617 __ jmp(&entry);
2618 __ bind(&loop); 2618 __ bind(&loop);
2619 __ lw(a3, MemOperand(t0, 0)); 2619 __ lw(a3, MemOperand(t0, 0));
2620 __ Branch(if_false, eq, a3, Operand(t2)); 2620 __ Branch(if_false, eq, a3, Operand(t2));
2621 __ Addu(t0, t0, Operand(kPointerSize)); 2621 __ Addu(t0, t0, Operand(kPointerSize));
2622 __ bind(&entry); 2622 __ bind(&entry);
2623 __ Branch(&loop, ne, t0, Operand(a2)); 2623 __ Branch(&loop, ne, t0, Operand(a2));
2624 2624
2625 // If a valueOf property is not found on the object check that it's 2625 // If a valueOf property is not found on the object check that it's
2626 // prototype is the un-modified String prototype. If not result is false. 2626 // prototype is the un-modified String prototype. If not result is false.
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after
4503 *context_length = 0; 4503 *context_length = 0;
4504 return previous_; 4504 return previous_;
4505 } 4505 }
4506 4506
4507 4507
4508 #undef __ 4508 #undef __
4509 4509
4510 } } // namespace v8::internal 4510 } } // namespace v8::internal
4511 4511
4512 #endif // V8_TARGET_ARCH_MIPS 4512 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/ic-mips.cc » ('j') | test/cctest/cctest.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698