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

Side by Side Diff: src/ppc/builtins-ppc.cc

Issue 1209703002: PPC: Fix "Fix receiver when calling eval() bound by with scope" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase and reapply Created 5 years, 6 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
« no previous file with comments | « no previous file | src/ppc/full-codegen-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 1390
1391 __ bind(&non_proxy); 1391 __ bind(&non_proxy);
1392 __ GetBuiltinFunction(r4, Builtins::CALL_NON_FUNCTION); 1392 __ GetBuiltinFunction(r4, Builtins::CALL_NON_FUNCTION);
1393 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), 1393 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(),
1394 RelocInfo::CODE_TARGET); 1394 RelocInfo::CODE_TARGET);
1395 __ bind(&function); 1395 __ bind(&function);
1396 } 1396 }
1397 1397
1398 // 5b. Get the code to call from the function and check that the number of 1398 // 5b. Get the code to call from the function and check that the number of
1399 // expected arguments matches what we're providing. If so, jump 1399 // expected arguments matches what we're providing. If so, jump
1400 // (tail-call) to the code in register edx without checking arguments. 1400 // (tail-call) to the code in register ip without checking arguments.
1401 // r3: actual number of arguments 1401 // r3: actual number of arguments
1402 // r4: function 1402 // r4: function
1403 __ LoadP(r6, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); 1403 __ LoadP(r6, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset));
1404 __ LoadWordArith( 1404 __ LoadWordArith(
1405 r5, FieldMemOperand(r6, SharedFunctionInfo::kFormalParameterCountOffset)); 1405 r5, FieldMemOperand(r6, SharedFunctionInfo::kFormalParameterCountOffset));
1406 #if !V8_TARGET_ARCH_PPC64 1406 #if !V8_TARGET_ARCH_PPC64
1407 __ SmiUntag(r5); 1407 __ SmiUntag(r5);
1408 #endif 1408 #endif
1409 __ cmp(r5, r3); // Check formal and actual parameter counts. 1409 __ cmp(r5, r3); // Check formal and actual parameter counts.
1410 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), 1410 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(),
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 __ bkpt(0); 1875 __ bkpt(0);
1876 } 1876 }
1877 } 1877 }
1878 1878
1879 1879
1880 #undef __ 1880 #undef __
1881 } // namespace internal 1881 } // namespace internal
1882 } // namespace v8 1882 } // namespace v8
1883 1883
1884 #endif // V8_TARGET_ARCH_PPC 1884 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698