Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 274 class StubCompiler BASE_EMBEDDED { | 274 class StubCompiler BASE_EMBEDDED { |
| 275 public: | 275 public: |
| 276 enum CheckType { | 276 enum CheckType { |
| 277 RECEIVER_MAP_CHECK, | 277 RECEIVER_MAP_CHECK, |
| 278 STRING_CHECK, | 278 STRING_CHECK, |
| 279 NUMBER_CHECK, | 279 NUMBER_CHECK, |
| 280 BOOLEAN_CHECK, | 280 BOOLEAN_CHECK, |
| 281 JSARRAY_HAS_FAST_ELEMENTS_CHECK | 281 JSARRAY_HAS_FAST_ELEMENTS_CHECK |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 StubCompiler() : masm_(NULL, 256) { } | 284 StubCompiler() : scope_(), masm_(NULL, 256) { } |
| 285 | 285 |
| 286 Object* CompileCallInitialize(Code::Flags flags); | 286 Object* CompileCallInitialize(Code::Flags flags); |
| 287 Object* CompileCallPreMonomorphic(Code::Flags flags); | 287 Object* CompileCallPreMonomorphic(Code::Flags flags); |
| 288 Object* CompileCallNormal(Code::Flags flags); | 288 Object* CompileCallNormal(Code::Flags flags); |
| 289 Object* CompileCallMegamorphic(Code::Flags flags); | 289 Object* CompileCallMegamorphic(Code::Flags flags); |
| 290 Object* CompileCallMiss(Code::Flags flags); | 290 Object* CompileCallMiss(Code::Flags flags); |
| 291 Object* CompileCallDebugBreak(Code::Flags flags); | 291 Object* CompileCallDebugBreak(Code::Flags flags); |
| 292 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); | 292 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); |
| 293 Object* CompileLazyCompile(Code::Flags flags); | 293 Object* CompileLazyCompile(Code::Flags flags); |
| 294 | 294 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 Register scratch, | 360 Register scratch, |
| 361 Label* miss_label); | 361 Label* miss_label); |
| 362 static void GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind); | 362 static void GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind); |
| 363 | 363 |
| 364 protected: | 364 protected: |
| 365 Object* GetCodeWithFlags(Code::Flags flags); | 365 Object* GetCodeWithFlags(Code::Flags flags); |
| 366 | 366 |
| 367 MacroAssembler* masm() { return &masm_; } | 367 MacroAssembler* masm() { return &masm_; } |
| 368 | 368 |
| 369 private: | 369 private: |
| 370 HandleScope scope_; | |
|
Kasper Lund
2009/02/25 15:00:19
This should allow you to get rid of a lot of Handl
iposva
2009/02/25 16:42:54
Done.
| |
| 370 MacroAssembler masm_; | 371 MacroAssembler masm_; |
| 371 }; | 372 }; |
| 372 | 373 |
| 373 | 374 |
| 374 class LoadStubCompiler: public StubCompiler { | 375 class LoadStubCompiler: public StubCompiler { |
| 375 public: | 376 public: |
| 376 Object* CompileLoadField(JSObject* object, JSObject* holder, int index); | 377 Object* CompileLoadField(JSObject* object, JSObject* holder, int index); |
| 377 Object* CompileLoadCallback(JSObject* object, | 378 Object* CompileLoadCallback(JSObject* object, |
| 378 JSObject* holder, | 379 JSObject* holder, |
| 379 AccessorInfo* callback); | 380 AccessorInfo* callback); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 461 | 462 |
| 462 const ParameterCount& arguments() { return arguments_; } | 463 const ParameterCount& arguments() { return arguments_; } |
| 463 | 464 |
| 464 Object* GetCode(PropertyType type); | 465 Object* GetCode(PropertyType type); |
| 465 }; | 466 }; |
| 466 | 467 |
| 467 | 468 |
| 468 } } // namespace v8::internal | 469 } } // namespace v8::internal |
| 469 | 470 |
| 470 #endif // V8_STUB_CACHE_H_ | 471 #endif // V8_STUB_CACHE_H_ |
| OLD | NEW |