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

Side by Side Diff: src/stub-cache.h

Issue 77035: Add ENABLE_DEBUGGER_SUPPORT macro.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 static Object* ComputeCallInitialize(int argc); 150 static Object* ComputeCallInitialize(int argc);
151 static Object* ComputeCallInitializeInLoop(int argc); 151 static Object* ComputeCallInitializeInLoop(int argc);
152 static Object* ComputeCallPreMonomorphic(int argc); 152 static Object* ComputeCallPreMonomorphic(int argc);
153 static Object* ComputeCallNormal(int argc); 153 static Object* ComputeCallNormal(int argc);
154 static Object* ComputeCallMegamorphic(int argc); 154 static Object* ComputeCallMegamorphic(int argc);
155 static Object* ComputeCallMiss(int argc); 155 static Object* ComputeCallMiss(int argc);
156 156
157 // Finds the Code object stored in the Heap::non_monomorphic_cache(). 157 // Finds the Code object stored in the Heap::non_monomorphic_cache().
158 static Code* FindCallInitialize(int argc); 158 static Code* FindCallInitialize(int argc);
159 159
160 #ifdef ENABLE_DEBUGGER_SUPPORT
160 static Object* ComputeCallDebugBreak(int argc); 161 static Object* ComputeCallDebugBreak(int argc);
161 static Object* ComputeCallDebugPrepareStepIn(int argc); 162 static Object* ComputeCallDebugPrepareStepIn(int argc);
163 #endif
162 164
163 static Object* ComputeLazyCompile(int argc); 165 static Object* ComputeLazyCompile(int argc);
164 166
165 167
166 // Update cache for entry hash(name, map). 168 // Update cache for entry hash(name, map).
167 static Code* Set(String* name, Map* map, Code* code); 169 static Code* Set(String* name, Map* map, Code* code);
168 170
169 // Clear the lookup table (@ mark compact collection). 171 // Clear the lookup table (@ mark compact collection).
170 static void Clear(); 172 static void Clear();
171 173
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 JSARRAY_HAS_FAST_ELEMENTS_CHECK 283 JSARRAY_HAS_FAST_ELEMENTS_CHECK
282 }; 284 };
283 285
284 StubCompiler() : scope_(), masm_(NULL, 256) { } 286 StubCompiler() : scope_(), masm_(NULL, 256) { }
285 287
286 Object* CompileCallInitialize(Code::Flags flags); 288 Object* CompileCallInitialize(Code::Flags flags);
287 Object* CompileCallPreMonomorphic(Code::Flags flags); 289 Object* CompileCallPreMonomorphic(Code::Flags flags);
288 Object* CompileCallNormal(Code::Flags flags); 290 Object* CompileCallNormal(Code::Flags flags);
289 Object* CompileCallMegamorphic(Code::Flags flags); 291 Object* CompileCallMegamorphic(Code::Flags flags);
290 Object* CompileCallMiss(Code::Flags flags); 292 Object* CompileCallMiss(Code::Flags flags);
293 #ifdef ENABLE_DEBUGGER_SUPPORT
291 Object* CompileCallDebugBreak(Code::Flags flags); 294 Object* CompileCallDebugBreak(Code::Flags flags);
292 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); 295 Object* CompileCallDebugPrepareStepIn(Code::Flags flags);
296 #endif
293 Object* CompileLazyCompile(Code::Flags flags); 297 Object* CompileLazyCompile(Code::Flags flags);
Søren Thygesen Gjesse 2009/04/17 23:46:17 Please move this before the #ifdef ENABLE_DEBUGGER
294 298
295 // Static functions for generating parts of stubs. 299 // Static functions for generating parts of stubs.
296 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, 300 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm,
297 int index, 301 int index,
298 Register prototype); 302 Register prototype);
299 static void GenerateFastPropertyLoad(MacroAssembler* masm, 303 static void GenerateFastPropertyLoad(MacroAssembler* masm,
300 Register dst, Register src, 304 Register dst, Register src,
301 JSObject* holder, int index); 305 JSObject* holder, int index);
302 static void GenerateLoadField(MacroAssembler* masm, 306 static void GenerateLoadField(MacroAssembler* masm,
303 JSObject* object, 307 JSObject* object,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 475
472 const ParameterCount& arguments() { return arguments_; } 476 const ParameterCount& arguments() { return arguments_; }
473 477
474 Object* GetCode(PropertyType type, String* name); 478 Object* GetCode(PropertyType type, String* name);
475 }; 479 };
476 480
477 481
478 } } // namespace v8::internal 482 } } // namespace v8::internal
479 483
480 #endif // V8_STUB_CACHE_H_ 484 #endif // V8_STUB_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698