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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 6717018: Introduce accessors on builtins instance (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removing Handle suffix and renaming enum entries 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
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 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 // Both expected and actual are in (different) registers. This 1863 // Both expected and actual are in (different) registers. This
1864 // is the case when we invoke functions using call and apply. 1864 // is the case when we invoke functions using call and apply.
1865 cmpq(expected.reg(), actual.reg()); 1865 cmpq(expected.reg(), actual.reg());
1866 j(equal, &invoke); 1866 j(equal, &invoke);
1867 ASSERT(actual.reg().is(rax)); 1867 ASSERT(actual.reg().is(rax));
1868 ASSERT(expected.reg().is(rbx)); 1868 ASSERT(expected.reg().is(rbx));
1869 } 1869 }
1870 } 1870 }
1871 1871
1872 if (!definitely_matches) { 1872 if (!definitely_matches) {
1873 Handle<Code> adaptor = 1873 Handle<Code> adaptor = isolate()->builtins()->ArgumentsAdaptorTrampoline();
1874 Handle<Code>(Isolate::Current()->builtins()->builtin(
1875 Builtins::ArgumentsAdaptorTrampoline));
1876 if (!code_constant.is_null()) { 1874 if (!code_constant.is_null()) {
1877 movq(rdx, code_constant, RelocInfo::EMBEDDED_OBJECT); 1875 movq(rdx, code_constant, RelocInfo::EMBEDDED_OBJECT);
1878 addq(rdx, Immediate(Code::kHeaderSize - kHeapObjectTag)); 1876 addq(rdx, Immediate(Code::kHeaderSize - kHeapObjectTag));
1879 } else if (!code_register.is(rdx)) { 1877 } else if (!code_register.is(rdx)) {
1880 movq(rdx, code_register); 1878 movq(rdx, code_register);
1881 } 1879 }
1882 1880
1883 if (flag == CALL_FUNCTION) { 1881 if (flag == CALL_FUNCTION) {
1884 if (call_wrapper != NULL) call_wrapper->BeforeCall(CallSize(adaptor)); 1882 if (call_wrapper != NULL) call_wrapper->BeforeCall(CallSize(adaptor));
1885 Call(adaptor, RelocInfo::CODE_TARGET); 1883 Call(adaptor, RelocInfo::CODE_TARGET);
1886 if (call_wrapper != NULL) call_wrapper->AfterCall(); 1884 if (call_wrapper != NULL) call_wrapper->AfterCall();
1887 jmp(done); 1885 jmp(done);
1888 } else { 1886 } else {
1889 Jump(adaptor, RelocInfo::CODE_TARGET); 1887 Jump(adaptor, RelocInfo::CODE_TARGET);
1890 } 1888 }
1891 bind(&invoke); 1889 bind(&invoke);
1892 } 1890 }
1893 } 1891 }
1894 1892
1895 1893
1896 } } // namespace v8::internal 1894 } } // namespace v8::internal
1897 1895
1898 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1896 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« src/builtins.cc ('K') | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698