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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 #ifdef ENABLE_DEBUGGER_SUPPORT | 339 #ifdef ENABLE_DEBUGGER_SUPPORT |
340 Object* CompileCallDebugBreak(Code::Flags flags); | 340 Object* CompileCallDebugBreak(Code::Flags flags); |
341 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); | 341 Object* CompileCallDebugPrepareStepIn(Code::Flags flags); |
342 #endif | 342 #endif |
343 Object* CompileLazyCompile(Code::Flags flags); | 343 Object* CompileLazyCompile(Code::Flags flags); |
344 | 344 |
345 // Static functions for generating parts of stubs. | 345 // Static functions for generating parts of stubs. |
346 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, | 346 static void GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm, |
347 int index, | 347 int index, |
348 Register prototype); | 348 Register prototype); |
| 349 |
349 static void GenerateFastPropertyLoad(MacroAssembler* masm, | 350 static void GenerateFastPropertyLoad(MacroAssembler* masm, |
350 Register dst, Register src, | 351 Register dst, Register src, |
351 JSObject* holder, int index); | 352 JSObject* holder, int index); |
352 | 353 |
353 static void GenerateLoadArrayLength(MacroAssembler* masm, | 354 static void GenerateLoadArrayLength(MacroAssembler* masm, |
354 Register receiver, | 355 Register receiver, |
355 Register scratch, | 356 Register scratch, |
356 Label* miss_label); | 357 Label* miss_label); |
| 358 |
357 static void GenerateLoadStringLength(MacroAssembler* masm, | 359 static void GenerateLoadStringLength(MacroAssembler* masm, |
358 Register receiver, | 360 Register receiver, |
359 Register scratch1, | 361 Register scratch1, |
360 Register scratch2, | 362 Register scratch2, |
361 Label* miss_label); | 363 Label* miss_label); |
| 364 |
362 static void GenerateLoadFunctionPrototype(MacroAssembler* masm, | 365 static void GenerateLoadFunctionPrototype(MacroAssembler* masm, |
363 Register receiver, | 366 Register receiver, |
364 Register scratch1, | 367 Register scratch1, |
365 Register scratch2, | 368 Register scratch2, |
366 Label* miss_label); | 369 Label* miss_label); |
| 370 |
367 static void GenerateStoreField(MacroAssembler* masm, | 371 static void GenerateStoreField(MacroAssembler* masm, |
368 Builtins::Name storage_extend, | 372 Builtins::Name storage_extend, |
369 JSObject* object, | 373 JSObject* object, |
370 int index, | 374 int index, |
371 Map* transition, | 375 Map* transition, |
372 Register receiver_reg, | 376 Register receiver_reg, |
373 Register name_reg, | 377 Register name_reg, |
374 Register scratch, | 378 Register scratch, |
375 Label* miss_label); | 379 Label* miss_label); |
| 380 |
376 static void GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind); | 381 static void GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind); |
377 | 382 |
378 // Check the integrity of the prototype chain to make sure that the | 383 // Check the integrity of the prototype chain to make sure that the |
379 // current IC is still valid. | 384 // current IC is still valid. |
380 Register CheckPrototypes(JSObject* object, | 385 Register CheckPrototypes(JSObject* object, |
381 Register object_reg, | 386 Register object_reg, |
382 JSObject* holder, | 387 JSObject* holder, |
383 Register holder_reg, | 388 Register holder_reg, |
384 Register scratch, | 389 Register scratch, |
385 String* name, | 390 String* name, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 Object* CompileConstructStub(SharedFunctionInfo* shared); | 574 Object* CompileConstructStub(SharedFunctionInfo* shared); |
570 | 575 |
571 private: | 576 private: |
572 Object* GetCode(); | 577 Object* GetCode(); |
573 }; | 578 }; |
574 | 579 |
575 | 580 |
576 } } // namespace v8::internal | 581 } } // namespace v8::internal |
577 | 582 |
578 #endif // V8_STUB_CACHE_H_ | 583 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |