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

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

Issue 442763002: Load constants from the DescriptorArray (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_STUB_CACHE_H_ 5 #ifndef V8_STUB_CACHE_H_
6 #define V8_STUB_CACHE_H_ 6 #define V8_STUB_CACHE_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 465
466 Handle<Code> CompileLoadField(Handle<Name> name, FieldIndex index, 466 Handle<Code> CompileLoadField(Handle<Name> name, FieldIndex index,
467 Representation representation); 467 Representation representation);
468 468
469 Handle<Code> CompileLoadCallback(Handle<Name> name, 469 Handle<Code> CompileLoadCallback(Handle<Name> name,
470 Handle<ExecutableAccessorInfo> callback); 470 Handle<ExecutableAccessorInfo> callback);
471 471
472 Handle<Code> CompileLoadCallback(Handle<Name> name, 472 Handle<Code> CompileLoadCallback(Handle<Name> name,
473 const CallOptimization& call_optimization); 473 const CallOptimization& call_optimization);
474 474
475 Handle<Code> CompileLoadConstant(Handle<Name> name, Handle<Object> value); 475 Handle<Code> CompileLoadConstant(Handle<Name> name, int constant_index);
476 476
477 Handle<Code> CompileLoadInterceptor(Handle<Name> name); 477 Handle<Code> CompileLoadInterceptor(Handle<Name> name);
478 478
479 Handle<Code> CompileLoadViaGetter(Handle<Name> name, 479 Handle<Code> CompileLoadViaGetter(Handle<Name> name,
480 Handle<JSFunction> getter); 480 Handle<JSFunction> getter);
481 481
482 Handle<Code> CompileLoadGlobal(Handle<PropertyCell> cell, Handle<Name> name, 482 Handle<Code> CompileLoadGlobal(Handle<PropertyCell> cell, Handle<Name> name,
483 bool is_configurable); 483 bool is_configurable);
484 484
485 // Static interface 485 // Static interface
(...skipping 29 matching lines...) Expand all
515 virtual Register FrontendHeader(Register object_reg, Handle<Name> name, 515 virtual Register FrontendHeader(Register object_reg, Handle<Name> name,
516 Label* miss); 516 Label* miss);
517 517
518 virtual void FrontendFooter(Handle<Name> name, Label* miss); 518 virtual void FrontendFooter(Handle<Name> name, Label* miss);
519 519
520 private: 520 private:
521 Handle<Code> CompileLoadNonexistent(Handle<Name> name); 521 Handle<Code> CompileLoadNonexistent(Handle<Name> name);
522 void GenerateLoadField(Register reg, 522 void GenerateLoadField(Register reg,
523 FieldIndex field, 523 FieldIndex field,
524 Representation representation); 524 Representation representation);
525 void GenerateLoadConstant(Register reg, int constant_index);
525 void GenerateLoadConstant(Handle<Object> value); 526 void GenerateLoadConstant(Handle<Object> value);
526 void GenerateLoadCallback(Register reg, 527 void GenerateLoadCallback(Register reg,
527 Handle<ExecutableAccessorInfo> callback); 528 Handle<ExecutableAccessorInfo> callback);
528 void GenerateLoadCallback(const CallOptimization& call_optimization, 529 void GenerateLoadCallback(const CallOptimization& call_optimization,
529 Handle<Map> receiver_map); 530 Handle<Map> receiver_map);
530 void GenerateLoadInterceptor(Register holder_reg, 531 void GenerateLoadInterceptor(Register holder_reg,
531 LookupResult* lookup, 532 LookupResult* lookup,
532 Handle<Name> name); 533 Handle<Name> name);
533 void GenerateLoadPostInterceptor(Register reg, 534 void GenerateLoadPostInterceptor(Register reg,
534 Handle<Name> name, 535 Handle<Name> name,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 Handle<JSFunction> constant_function_; 682 Handle<JSFunction> constant_function_;
682 bool is_simple_api_call_; 683 bool is_simple_api_call_;
683 Handle<FunctionTemplateInfo> expected_receiver_type_; 684 Handle<FunctionTemplateInfo> expected_receiver_type_;
684 Handle<CallHandlerInfo> api_call_info_; 685 Handle<CallHandlerInfo> api_call_info_;
685 }; 686 };
686 687
687 688
688 } } // namespace v8::internal 689 } } // namespace v8::internal
689 690
690 #endif // V8_STUB_CACHE_H_ 691 #endif // V8_STUB_CACHE_H_
OLDNEW
« src/ia32/stub-cache-ia32.cc ('K') | « src/objects-inl.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698