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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 18615008: MIPS: Rename AllocationSite::payload to AllocationSite::transition_info (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/mips/stub-cache-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 7369 matching lines...) Expand 10 before | Expand all | Expand 10 after
7380 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 7380 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
7381 __ Branch(&normal_sequence, eq, a2, Operand(at)); 7381 __ Branch(&normal_sequence, eq, a2, Operand(at));
7382 __ lw(t1, FieldMemOperand(a2, Cell::kValueOffset)); 7382 __ lw(t1, FieldMemOperand(a2, Cell::kValueOffset));
7383 __ lw(t1, FieldMemOperand(t1, 0)); 7383 __ lw(t1, FieldMemOperand(t1, 0));
7384 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); 7384 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex);
7385 __ Branch(&normal_sequence, ne, t1, Operand(at)); 7385 __ Branch(&normal_sequence, ne, t1, Operand(at));
7386 7386
7387 // Save the resulting elements kind in type info 7387 // Save the resulting elements kind in type info
7388 __ SmiTag(a3); 7388 __ SmiTag(a3);
7389 __ lw(t1, FieldMemOperand(a2, Cell::kValueOffset)); 7389 __ lw(t1, FieldMemOperand(a2, Cell::kValueOffset));
7390 __ sw(a3, FieldMemOperand(t1, AllocationSite::kPayloadOffset)); 7390 __ sw(a3, FieldMemOperand(t1, AllocationSite::kTransitionInfoOffset));
7391 __ SmiUntag(a3); 7391 __ SmiUntag(a3);
7392 7392
7393 __ bind(&normal_sequence); 7393 __ bind(&normal_sequence);
7394 int last_index = GetSequenceIndexFromFastElementsKind( 7394 int last_index = GetSequenceIndexFromFastElementsKind(
7395 TERMINAL_FAST_ELEMENTS_KIND); 7395 TERMINAL_FAST_ELEMENTS_KIND);
7396 for (int i = 0; i <= last_index; ++i) { 7396 for (int i = 0; i <= last_index; ++i) {
7397 Label next; 7397 Label next;
7398 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); 7398 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i);
7399 __ Branch(&next, ne, a3, Operand(kind)); 7399 __ Branch(&next, ne, a3, Operand(kind));
7400 ArraySingleArgumentConstructorStub stub(kind); 7400 ArraySingleArgumentConstructorStub stub(kind);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
7493 7493
7494 // We should have an allocation site object 7494 // We should have an allocation site object
7495 if (FLAG_debug_code) { 7495 if (FLAG_debug_code) {
7496 __ push(a3); 7496 __ push(a3);
7497 __ sw(a3, FieldMemOperand(a3, 0)); 7497 __ sw(a3, FieldMemOperand(a3, 0));
7498 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); 7498 __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex);
7499 __ Assert(eq, "Expected AllocationSite object in register a3", 7499 __ Assert(eq, "Expected AllocationSite object in register a3",
7500 a3, Operand(at)); 7500 a3, Operand(at));
7501 } 7501 }
7502 7502
7503 __ lw(a3, FieldMemOperand(a3, AllocationSite::kPayloadOffset)); 7503 __ lw(a3, FieldMemOperand(a3, AllocationSite::kTransitionInfoOffset));
7504 __ SmiUntag(a3); 7504 __ SmiUntag(a3);
7505 __ jmp(&switch_ready); 7505 __ jmp(&switch_ready);
7506 __ bind(&no_info); 7506 __ bind(&no_info);
7507 __ li(a3, Operand(GetInitialFastElementsKind())); 7507 __ li(a3, Operand(GetInitialFastElementsKind()));
7508 __ bind(&switch_ready); 7508 __ bind(&switch_ready);
7509 7509
7510 if (argument_count_ == ANY) { 7510 if (argument_count_ == ANY) {
7511 Label not_zero_case, not_one_case; 7511 Label not_zero_case, not_one_case;
7512 __ And(at, a0, a0); 7512 __ And(at, a0, a0);
7513 __ Branch(&not_zero_case, ne, at, Operand(zero_reg)); 7513 __ Branch(&not_zero_case, ne, at, Operand(zero_reg));
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
7612 __ bind(&fast_elements_case); 7612 __ bind(&fast_elements_case);
7613 GenerateCase(masm, FAST_ELEMENTS); 7613 GenerateCase(masm, FAST_ELEMENTS);
7614 } 7614 }
7615 7615
7616 7616
7617 #undef __ 7617 #undef __
7618 7618
7619 } } // namespace v8::internal 7619 } } // namespace v8::internal
7620 7620
7621 #endif // V8_TARGET_ARCH_MIPS 7621 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698