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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 23903053: reland 16744: add context save for GenerateFastApiCall (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/stub-cache-arm.cc ('k') | src/ia32/macro-assembler-ia32.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3476 matching lines...) Expand 10 before | Expand all | Expand 10 after
3487 __ lea(ecx, FieldOperand(eax, ebx, times_2, SeqTwoByteString::kHeaderSize)); 3487 __ lea(ecx, FieldOperand(eax, ebx, times_2, SeqTwoByteString::kHeaderSize));
3488 __ mov(Operand(esp, 2 * kPointerSize), ecx); // Argument 3. 3488 __ mov(Operand(esp, 2 * kPointerSize), ecx); // Argument 3.
3489 3489
3490 __ bind(&setup_rest); 3490 __ bind(&setup_rest);
3491 3491
3492 // Locate the code entry and call it. 3492 // Locate the code entry and call it.
3493 __ add(edx, Immediate(Code::kHeaderSize - kHeapObjectTag)); 3493 __ add(edx, Immediate(Code::kHeaderSize - kHeapObjectTag));
3494 __ call(edx); 3494 __ call(edx);
3495 3495
3496 // Drop arguments and come back to JS mode. 3496 // Drop arguments and come back to JS mode.
3497 __ LeaveApiExitFrame(); 3497 __ LeaveApiExitFrame(true);
3498 3498
3499 // Check the result. 3499 // Check the result.
3500 Label success; 3500 Label success;
3501 __ cmp(eax, 1); 3501 __ cmp(eax, 1);
3502 // We expect exactly one result since we force the called regexp to behave 3502 // We expect exactly one result since we force the called regexp to behave
3503 // as non-global. 3503 // as non-global.
3504 __ j(equal, &success); 3504 __ j(equal, &success);
3505 Label failure; 3505 Label failure;
3506 __ cmp(eax, NativeRegExpMacroAssembler::FAILURE); 3506 __ cmp(eax, NativeRegExpMacroAssembler::FAILURE);
3507 __ j(equal, &failure); 3507 __ j(equal, &failure);
(...skipping 4039 matching lines...) Expand 10 before | Expand all | Expand 10 after
7547 __ bind(&fast_elements_case); 7547 __ bind(&fast_elements_case);
7548 GenerateCase(masm, FAST_ELEMENTS); 7548 GenerateCase(masm, FAST_ELEMENTS);
7549 } 7549 }
7550 7550
7551 7551
7552 #undef __ 7552 #undef __
7553 7553
7554 } } // namespace v8::internal 7554 } } // namespace v8::internal
7555 7555
7556 #endif // V8_TARGET_ARCH_IA32 7556 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698