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

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

Issue 5107002: Avoiding repacking payload for v8::Arguments and v8::AccessorInfo (arm). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 1 month 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2570 matching lines...) Expand 10 before | Expand all | Expand 10 after
2581 ASSERT(callback != NULL); 2581 ASSERT(callback != NULL);
2582 ASSERT(callback->getter() != NULL); 2582 ASSERT(callback->getter() != NULL);
2583 2583
2584 // Tail call to runtime. 2584 // Tail call to runtime.
2585 // Important invariant in CALLBACKS case: the code above must be 2585 // Important invariant in CALLBACKS case: the code above must be
2586 // structured to never clobber |receiver| register. 2586 // structured to never clobber |receiver| register.
2587 __ pop(scratch2); // return address 2587 __ pop(scratch2); // return address
2588 __ push(receiver); 2588 __ push(receiver);
2589 __ push(holder_reg); 2589 __ push(holder_reg);
2590 __ Move(holder_reg, Handle<AccessorInfo>(callback)); 2590 __ Move(holder_reg, Handle<AccessorInfo>(callback));
2591 __ push(FieldOperand(holder_reg, AccessorInfo::kDataOffset));
2591 __ push(holder_reg); 2592 __ push(holder_reg);
2592 __ push(FieldOperand(holder_reg, AccessorInfo::kDataOffset));
2593 __ push(name_reg); 2593 __ push(name_reg);
2594 __ push(scratch2); // restore return address 2594 __ push(scratch2); // restore return address
2595 2595
2596 ExternalReference ref = 2596 ExternalReference ref =
2597 ExternalReference(IC_Utility(IC::kLoadCallbackProperty)); 2597 ExternalReference(IC_Utility(IC::kLoadCallbackProperty));
2598 __ TailCallExternalReference(ref, 5, 1); 2598 __ TailCallExternalReference(ref, 5, 1);
2599 } 2599 }
2600 } else { // !compile_followup_inline 2600 } else { // !compile_followup_inline
2601 // Call the runtime system to load the interceptor. 2601 // Call the runtime system to load the interceptor.
2602 // Check that the maps haven't changed. 2602 // Check that the maps haven't changed.
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
3016 // Return the generated code. 3016 // Return the generated code.
3017 return GetCode(); 3017 return GetCode();
3018 } 3018 }
3019 3019
3020 3020
3021 #undef __ 3021 #undef __
3022 3022
3023 } } // namespace v8::internal 3023 } } // namespace v8::internal
3024 3024
3025 #endif // V8_TARGET_ARCH_X64 3025 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/builtins.cc ('K') | « src/stub-cache.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698