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

Side by Side Diff: src/arm/codegen-arm.cc

Issue 660104: Inlining a few virtual frame functions.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/codegen-arm.h ('k') | src/arm/fast-codegen-arm.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 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 17 matching lines...) Expand all
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "bootstrapper.h" 30 #include "bootstrapper.h"
31 #include "codegen-inl.h" 31 #include "codegen-inl.h"
32 #include "compiler.h" 32 #include "compiler.h"
33 #include "debug.h" 33 #include "debug.h"
34 #include "parser.h" 34 #include "parser.h"
35 #include "register-allocator-inl.h" 35 #include "register-allocator-inl.h"
36 #include "runtime.h" 36 #include "runtime.h"
37 #include "scopes.h" 37 #include "scopes.h"
38 38 #include "virtual-frame-inl.h"
39 39
40 namespace v8 { 40 namespace v8 {
41 namespace internal { 41 namespace internal {
42 42
43 #define __ ACCESS_MASM(masm_) 43 #define __ ACCESS_MASM(masm_)
44 44
45 static void EmitIdenticalObjectComparison(MacroAssembler* masm, 45 static void EmitIdenticalObjectComparison(MacroAssembler* masm,
46 Label* slow, 46 Label* slow,
47 Condition cc, 47 Condition cc,
48 bool never_nan_nan); 48 bool never_nan_nan);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 masm_(masm), 126 masm_(masm),
127 info_(NULL), 127 info_(NULL),
128 frame_(NULL), 128 frame_(NULL),
129 allocator_(NULL), 129 allocator_(NULL),
130 cc_reg_(al), 130 cc_reg_(al),
131 state_(NULL), 131 state_(NULL),
132 function_return_is_shadowed_(false) { 132 function_return_is_shadowed_(false) {
133 } 133 }
134 134
135 135
136 Scope* CodeGenerator::scope() { return info_->function()->scope(); }
137
138
139 // Calling conventions: 136 // Calling conventions:
140 // fp: caller's frame pointer 137 // fp: caller's frame pointer
141 // sp: stack pointer 138 // sp: stack pointer
142 // r1: called JS function 139 // r1: called JS function
143 // cp: callee's context 140 // cp: callee's context
144 141
145 void CodeGenerator::Generate(CompilationInfo* info) { 142 void CodeGenerator::Generate(CompilationInfo* info) {
146 // Record the position for debugging purposes. 143 // Record the position for debugging purposes.
147 CodeForFunctionPosition(info->function()); 144 CodeForFunctionPosition(info->function());
148 Comment cmnt(masm_, "[ function compiled by virtual frame code generator"); 145 Comment cmnt(masm_, "[ function compiled by virtual frame code generator");
(...skipping 7508 matching lines...) Expand 10 before | Expand all | Expand 10 after
7657 7654
7658 // Just jump to runtime to add the two strings. 7655 // Just jump to runtime to add the two strings.
7659 __ bind(&string_add_runtime); 7656 __ bind(&string_add_runtime);
7660 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 7657 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
7661 } 7658 }
7662 7659
7663 7660
7664 #undef __ 7661 #undef __
7665 7662
7666 } } // namespace v8::internal 7663 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/arm/fast-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698