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

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

Issue 23756009: remove getcurrent from stubs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: reorder isolate parameter 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/ia32/builtins-ia32.cc ('k') | src/ia32/codegen-ia32.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 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 4490 matching lines...) Expand 10 before | Expand all | Expand 10 after
4501 if (FLAG_debug_code) { 4501 if (FLAG_debug_code) {
4502 __ CheckStackAlignment(); 4502 __ CheckStackAlignment();
4503 } 4503 }
4504 4504
4505 if (do_gc) { 4505 if (do_gc) {
4506 // Pass failure code returned from last attempt as first argument to 4506 // Pass failure code returned from last attempt as first argument to
4507 // PerformGC. No need to use PrepareCallCFunction/CallCFunction here as the 4507 // PerformGC. No need to use PrepareCallCFunction/CallCFunction here as the
4508 // stack alignment is known to be correct. This function takes one argument 4508 // stack alignment is known to be correct. This function takes one argument
4509 // which is passed on the stack, and we know that the stack has been 4509 // which is passed on the stack, and we know that the stack has been
4510 // prepared to pass at least one argument. 4510 // prepared to pass at least one argument.
4511 __ mov(Operand(esp, 1 * kPointerSize),
4512 Immediate(ExternalReference::isolate_address(masm->isolate())));
4511 __ mov(Operand(esp, 0 * kPointerSize), eax); // Result. 4513 __ mov(Operand(esp, 0 * kPointerSize), eax); // Result.
4512 __ call(FUNCTION_ADDR(Runtime::PerformGC), RelocInfo::RUNTIME_ENTRY); 4514 __ call(FUNCTION_ADDR(Runtime::PerformGC), RelocInfo::RUNTIME_ENTRY);
4513 } 4515 }
4514 4516
4515 ExternalReference scope_depth = 4517 ExternalReference scope_depth =
4516 ExternalReference::heap_always_allocate_scope_depth(masm->isolate()); 4518 ExternalReference::heap_always_allocate_scope_depth(masm->isolate());
4517 if (always_allocate_scope) { 4519 if (always_allocate_scope) {
4518 __ inc(Operand::StaticVariable(scope_depth)); 4520 __ inc(Operand::StaticVariable(scope_depth));
4519 } 4521 }
4520 4522
(...skipping 3025 matching lines...) Expand 10 before | Expand all | Expand 10 after
7546 __ bind(&fast_elements_case); 7548 __ bind(&fast_elements_case);
7547 GenerateCase(masm, FAST_ELEMENTS); 7549 GenerateCase(masm, FAST_ELEMENTS);
7548 } 7550 }
7549 7551
7550 7552
7551 #undef __ 7553 #undef __
7552 7554
7553 } } // namespace v8::internal 7555 } } // namespace v8::internal
7554 7556
7555 #endif // V8_TARGET_ARCH_IA32 7557 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698