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

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

Issue 5188006: Push version 2.5.7 to trunk.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 years, 1 month 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/heap-profiler.cc ('k') | src/ia32/codegen-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 3040 matching lines...) Expand 10 before | Expand all | Expand 10 after
3051 __ cmp(ebp, 0); 3051 __ cmp(ebp, 0);
3052 __ j(equal, &skip, not_taken); 3052 __ j(equal, &skip, not_taken);
3053 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 3053 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
3054 __ bind(&skip); 3054 __ bind(&skip);
3055 3055
3056 STATIC_ASSERT(StackHandlerConstants::kPCOffset == 3 * kPointerSize); 3056 STATIC_ASSERT(StackHandlerConstants::kPCOffset == 3 * kPointerSize);
3057 __ ret(0); 3057 __ ret(0);
3058 } 3058 }
3059 3059
3060 3060
3061 void ApiGetterEntryStub::Generate(MacroAssembler* masm) {
3062 __ PrepareCallApiFunction(kStackSpace, kArgc);
3063 STATIC_ASSERT(kArgc == 2);
3064 __ mov(ApiParameterOperand(0), ebx); // name.
3065 __ mov(ApiParameterOperand(1), eax); // arguments pointer.
3066 __ CallApiFunctionAndReturn(fun(), kArgc);
3067 }
3068
3069
3070 void ApiCallEntryStub::Generate(MacroAssembler* masm) {
3071 __ PrepareCallApiFunction(kStackSpace, kArgc);
3072 STATIC_ASSERT(kArgc == 5);
3073
3074 // Allocate the v8::Arguments structure in the arguments' space since
3075 // it's not controlled by GC.
3076 __ mov(ApiParameterOperand(1), eax); // v8::Arguments::implicit_args_.
3077 __ mov(ApiParameterOperand(2), ebx); // v8::Arguments::values_.
3078 __ mov(ApiParameterOperand(3), edx); // v8::Arguments::length_.
3079 // v8::Arguments::is_construct_call_.
3080 __ mov(ApiParameterOperand(4), Immediate(0));
3081
3082 // v8::InvocationCallback's argument.
3083 __ lea(eax, ApiParameterOperand(1));
3084 __ mov(ApiParameterOperand(0), eax);
3085
3086 __ CallApiFunctionAndReturn(fun(), kArgc);
3087 }
3088
3089
3090 void CEntryStub::GenerateCore(MacroAssembler* masm, 3061 void CEntryStub::GenerateCore(MacroAssembler* masm,
3091 Label* throw_normal_exception, 3062 Label* throw_normal_exception,
3092 Label* throw_termination_exception, 3063 Label* throw_termination_exception,
3093 Label* throw_out_of_memory_exception, 3064 Label* throw_out_of_memory_exception,
3094 bool do_gc, 3065 bool do_gc,
3095 bool always_allocate_scope, 3066 bool always_allocate_scope,
3096 int /* alignment_skew */) { 3067 int /* alignment_skew */) {
3097 // eax: result parameter for PerformGC, if any 3068 // eax: result parameter for PerformGC, if any
3098 // ebx: pointer to C function (C callee-saved) 3069 // ebx: pointer to C function (C callee-saved)
3099 // ebp: frame pointer (restored after C call) 3070 // ebp: frame pointer (restored after C call)
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
4599 // tagged as a small integer. 4570 // tagged as a small integer.
4600 __ bind(&runtime); 4571 __ bind(&runtime);
4601 __ TailCallRuntime(Runtime::kStringCompare, 2, 1); 4572 __ TailCallRuntime(Runtime::kStringCompare, 2, 1);
4602 } 4573 }
4603 4574
4604 #undef __ 4575 #undef __
4605 4576
4606 } } // namespace v8::internal 4577 } } // namespace v8::internal
4607 4578
4608 #endif // V8_TARGET_ARCH_IA32 4579 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap-profiler.cc ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698