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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 6717018: Introduce accessors on builtins instance (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix tests and lint. Created 9 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
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/stub-cache-arm.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 } 896 }
897 } 897 }
898 898
899 if (!definitely_matches) { 899 if (!definitely_matches) {
900 if (!code_constant.is_null()) { 900 if (!code_constant.is_null()) {
901 mov(r3, Operand(code_constant)); 901 mov(r3, Operand(code_constant));
902 add(r3, r3, Operand(Code::kHeaderSize - kHeapObjectTag)); 902 add(r3, r3, Operand(Code::kHeaderSize - kHeapObjectTag));
903 } 903 }
904 904
905 Handle<Code> adaptor = 905 Handle<Code> adaptor =
906 Handle<Code>(Isolate::Current()->builtins()->builtin( 906 isolate()->builtins()->ArgumentsAdaptorTrampoline();
907 Builtins::ArgumentsAdaptorTrampoline));
908 if (flag == CALL_FUNCTION) { 907 if (flag == CALL_FUNCTION) {
909 if (call_wrapper != NULL) { 908 if (call_wrapper != NULL) {
910 call_wrapper->BeforeCall(CallSize(adaptor, RelocInfo::CODE_TARGET)); 909 call_wrapper->BeforeCall(CallSize(adaptor, RelocInfo::CODE_TARGET));
911 } 910 }
912 Call(adaptor, RelocInfo::CODE_TARGET); 911 Call(adaptor, RelocInfo::CODE_TARGET);
913 if (call_wrapper != NULL) call_wrapper->AfterCall(); 912 if (call_wrapper != NULL) call_wrapper->AfterCall();
914 b(done); 913 b(done);
915 } else { 914 } else {
916 Jump(adaptor, RelocInfo::CODE_TARGET); 915 Jump(adaptor, RelocInfo::CODE_TARGET);
917 } 916 }
(...skipping 2025 matching lines...) Expand 10 before | Expand all | Expand 10 after
2943 void CodePatcher::EmitCondition(Condition cond) { 2942 void CodePatcher::EmitCondition(Condition cond) {
2944 Instr instr = Assembler::instr_at(masm_.pc_); 2943 Instr instr = Assembler::instr_at(masm_.pc_);
2945 instr = (instr & ~kCondMask) | cond; 2944 instr = (instr & ~kCondMask) | cond;
2946 masm_.emit(instr); 2945 masm_.emit(instr);
2947 } 2946 }
2948 2947
2949 2948
2950 } } // namespace v8::internal 2949 } } // namespace v8::internal
2951 2950
2952 #endif // V8_TARGET_ARCH_ARM 2951 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698