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

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

Issue 18749004: 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/arm/stub-cache-arm.cc » ('j') | src/objects.h » ('J')
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 6955 matching lines...) Expand 10 before | Expand all | Expand 10 after
6966 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex); 6966 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex);
6967 __ b(eq, &normal_sequence); 6967 __ b(eq, &normal_sequence);
6968 __ ldr(r5, FieldMemOperand(r2, Cell::kValueOffset)); 6968 __ ldr(r5, FieldMemOperand(r2, Cell::kValueOffset));
6969 __ ldr(r5, FieldMemOperand(r5, 0)); 6969 __ ldr(r5, FieldMemOperand(r5, 0));
6970 __ CompareRoot(r5, Heap::kAllocationSiteMapRootIndex); 6970 __ CompareRoot(r5, Heap::kAllocationSiteMapRootIndex);
6971 __ b(ne, &normal_sequence); 6971 __ b(ne, &normal_sequence);
6972 6972
6973 // Save the resulting elements kind in type info 6973 // Save the resulting elements kind in type info
6974 __ SmiTag(r3); 6974 __ SmiTag(r3);
6975 __ ldr(r5, FieldMemOperand(r2, Cell::kValueOffset)); 6975 __ ldr(r5, FieldMemOperand(r2, Cell::kValueOffset));
6976 __ str(r3, FieldMemOperand(r5, AllocationSite::kPayloadOffset)); 6976 __ str(r3, FieldMemOperand(r5, AllocationSite::kTransitionInfoOffset));
6977 __ SmiUntag(r3); 6977 __ SmiUntag(r3);
6978 6978
6979 __ bind(&normal_sequence); 6979 __ bind(&normal_sequence);
6980 int last_index = GetSequenceIndexFromFastElementsKind( 6980 int last_index = GetSequenceIndexFromFastElementsKind(
6981 TERMINAL_FAST_ELEMENTS_KIND); 6981 TERMINAL_FAST_ELEMENTS_KIND);
6982 for (int i = 0; i <= last_index; ++i) { 6982 for (int i = 0; i <= last_index; ++i) {
6983 Label next; 6983 Label next;
6984 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); 6984 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i);
6985 __ cmp(r3, Operand(kind)); 6985 __ cmp(r3, Operand(kind));
6986 __ b(ne, &next); 6986 __ b(ne, &next);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
7077 __ b(eq, &no_info); 7077 __ b(eq, &no_info);
7078 7078
7079 // We should have an allocation site object 7079 // We should have an allocation site object
7080 if (FLAG_debug_code) { 7080 if (FLAG_debug_code) {
7081 __ push(r3); 7081 __ push(r3);
7082 __ ldr(r3, FieldMemOperand(r3, 0)); 7082 __ ldr(r3, FieldMemOperand(r3, 0));
7083 __ CompareRoot(r3, Heap::kAllocationSiteMapRootIndex); 7083 __ CompareRoot(r3, Heap::kAllocationSiteMapRootIndex);
7084 __ Assert(eq, "Expected AllocationSite object in register edx"); 7084 __ Assert(eq, "Expected AllocationSite object in register edx");
7085 } 7085 }
7086 7086
7087 __ ldr(r3, FieldMemOperand(r3, AllocationSite::kPayloadOffset)); 7087 __ ldr(r3, FieldMemOperand(r3, AllocationSite::kTransitionInfoOffset));
7088 __ SmiUntag(r3); 7088 __ SmiUntag(r3);
7089 __ jmp(&switch_ready); 7089 __ jmp(&switch_ready);
7090 __ bind(&no_info); 7090 __ bind(&no_info);
7091 __ mov(r3, Operand(GetInitialFastElementsKind())); 7091 __ mov(r3, Operand(GetInitialFastElementsKind()));
7092 __ bind(&switch_ready); 7092 __ bind(&switch_ready);
7093 7093
7094 if (argument_count_ == ANY) { 7094 if (argument_count_ == ANY) {
7095 Label not_zero_case, not_one_case; 7095 Label not_zero_case, not_one_case;
7096 __ tst(r0, r0); 7096 __ tst(r0, r0);
7097 __ b(ne, &not_zero_case); 7097 __ b(ne, &not_zero_case);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
7199 __ bind(&fast_elements_case); 7199 __ bind(&fast_elements_case);
7200 GenerateCase(masm, FAST_ELEMENTS); 7200 GenerateCase(masm, FAST_ELEMENTS);
7201 } 7201 }
7202 7202
7203 7203
7204 #undef __ 7204 #undef __
7205 7205
7206 } } // namespace v8::internal 7206 } } // namespace v8::internal
7207 7207
7208 #endif // V8_TARGET_ARCH_ARM 7208 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/stub-cache-arm.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698