OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1931 __ DropAndRet(HasArgsInRegisters() ? 0 : 2, eq, a0, Operand(zero_reg)); | 1931 __ DropAndRet(HasArgsInRegisters() ? 0 : 2, eq, a0, Operand(zero_reg)); |
1932 __ LoadRoot(v0, Heap::kFalseValueRootIndex); | 1932 __ LoadRoot(v0, Heap::kFalseValueRootIndex); |
1933 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); | 1933 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); |
1934 } | 1934 } |
1935 } | 1935 } |
1936 | 1936 |
1937 | 1937 |
1938 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | 1938 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
1939 Label miss; | 1939 Label miss; |
1940 Register receiver = LoadIC::ReceiverRegister(); | 1940 Register receiver = LoadIC::ReceiverRegister(); |
1941 Register name = LoadIC::NameRegister(); | 1941 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3, |
1942 | 1942 a4, &miss); |
1943 ASSERT(kind() == Code::LOAD_IC || | |
1944 kind() == Code::KEYED_LOAD_IC); | |
1945 | |
1946 if (kind() == Code::KEYED_LOAD_IC) { | |
1947 __ Branch(&miss, ne, name, | |
1948 Operand(isolate()->factory()->prototype_string())); | |
1949 } | |
1950 | |
1951 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3, a4, &miss); | |
1952 __ bind(&miss); | 1943 __ bind(&miss); |
1953 StubCompiler::TailCallBuiltin( | 1944 PropertyAccessCompiler::TailCallBuiltin( |
1954 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); | 1945 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); |
1955 } | 1946 } |
1956 | 1947 |
1957 | 1948 |
1958 Register InstanceofStub::left() { return a0; } | 1949 Register InstanceofStub::left() { return a0; } |
1959 | 1950 |
1960 | 1951 |
1961 Register InstanceofStub::right() { return a1; } | 1952 Register InstanceofStub::right() { return a1; } |
1962 | 1953 |
1963 | 1954 |
1964 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { | 1955 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
(...skipping 3343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5308 MemOperand(fp, 6 * kPointerSize), | 5299 MemOperand(fp, 6 * kPointerSize), |
5309 NULL); | 5300 NULL); |
5310 } | 5301 } |
5311 | 5302 |
5312 | 5303 |
5313 #undef __ | 5304 #undef __ |
5314 | 5305 |
5315 } } // namespace v8::internal | 5306 } } // namespace v8::internal |
5316 | 5307 |
5317 #endif // V8_TARGET_ARCH_MIPS64 | 5308 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |