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

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

Issue 8111006: Allow new-space JSFunction objects as constant-function properties. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 MUST_USE_RESULT MaybeObject* ComputeLoadCallback( 87 MUST_USE_RESULT MaybeObject* ComputeLoadCallback(
88 String* name, 88 String* name,
89 JSObject* receiver, 89 JSObject* receiver,
90 JSObject* holder, 90 JSObject* holder,
91 AccessorInfo* callback); 91 AccessorInfo* callback);
92 92
93 MUST_USE_RESULT MaybeObject* ComputeLoadConstant(String* name, 93 MUST_USE_RESULT MaybeObject* ComputeLoadConstant(String* name,
94 JSObject* receiver, 94 JSObject* receiver,
95 JSObject* holder, 95 JSObject* holder,
96 Object* value); 96 JSFunction* value);
97 97
98 MUST_USE_RESULT MaybeObject* ComputeLoadInterceptor( 98 MUST_USE_RESULT MaybeObject* ComputeLoadInterceptor(
99 String* name, 99 String* name,
100 JSObject* receiver, 100 JSObject* receiver,
101 JSObject* holder); 101 JSObject* holder);
102 102
103 MUST_USE_RESULT MaybeObject* ComputeLoadNormal(); 103 MUST_USE_RESULT MaybeObject* ComputeLoadNormal();
104 104
105 105
106 MUST_USE_RESULT MaybeObject* ComputeLoadGlobal( 106 MUST_USE_RESULT MaybeObject* ComputeLoadGlobal(
(...skipping 14 matching lines...) Expand all
121 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadCallback( 121 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadCallback(
122 String* name, 122 String* name,
123 JSObject* receiver, 123 JSObject* receiver,
124 JSObject* holder, 124 JSObject* holder,
125 AccessorInfo* callback); 125 AccessorInfo* callback);
126 126
127 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadConstant( 127 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadConstant(
128 String* name, 128 String* name,
129 JSObject* receiver, 129 JSObject* receiver,
130 JSObject* holder, 130 JSObject* holder,
131 Object* value); 131 JSFunction* value);
132 132
133 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadInterceptor( 133 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadInterceptor(
134 String* name, 134 String* name,
135 JSObject* receiver, 135 JSObject* receiver,
136 JSObject* holder); 136 JSObject* holder);
137 137
138 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadArrayLength( 138 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadArrayLength(
139 String* name, 139 String* name,
140 JSArray* receiver); 140 JSArray* receiver);
141 141
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 AccessorInfo* callback, 540 AccessorInfo* callback,
541 String* name, 541 String* name,
542 Label* miss); 542 Label* miss);
543 543
544 void GenerateLoadConstant(JSObject* object, 544 void GenerateLoadConstant(JSObject* object,
545 JSObject* holder, 545 JSObject* holder,
546 Register receiver, 546 Register receiver,
547 Register scratch1, 547 Register scratch1,
548 Register scratch2, 548 Register scratch2,
549 Register scratch3, 549 Register scratch3,
550 Object* value, 550 JSFunction* value,
551 String* name, 551 String* name,
552 Label* miss); 552 Label* miss);
553 553
554 void GenerateLoadInterceptor(JSObject* object, 554 void GenerateLoadInterceptor(JSObject* object,
555 JSObject* holder, 555 JSObject* holder,
556 LookupResult* lookup, 556 LookupResult* lookup,
557 Register receiver, 557 Register receiver,
558 Register name_reg, 558 Register name_reg,
559 Register scratch1, 559 Register scratch1,
560 Register scratch2, 560 Register scratch2,
(...skipping 27 matching lines...) Expand all
588 int index, 588 int index,
589 String* name); 589 String* name);
590 590
591 MUST_USE_RESULT MaybeObject* CompileLoadCallback(String* name, 591 MUST_USE_RESULT MaybeObject* CompileLoadCallback(String* name,
592 JSObject* object, 592 JSObject* object,
593 JSObject* holder, 593 JSObject* holder,
594 AccessorInfo* callback); 594 AccessorInfo* callback);
595 595
596 MUST_USE_RESULT MaybeObject* CompileLoadConstant(JSObject* object, 596 MUST_USE_RESULT MaybeObject* CompileLoadConstant(JSObject* object,
597 JSObject* holder, 597 JSObject* holder,
598 Object* value, 598 JSFunction* value,
599 String* name); 599 String* name);
600 600
601 MUST_USE_RESULT MaybeObject* CompileLoadInterceptor(JSObject* object, 601 MUST_USE_RESULT MaybeObject* CompileLoadInterceptor(JSObject* object,
602 JSObject* holder, 602 JSObject* holder,
603 String* name); 603 String* name);
604 604
605 MUST_USE_RESULT MaybeObject* CompileLoadGlobal(JSObject* object, 605 MUST_USE_RESULT MaybeObject* CompileLoadGlobal(JSObject* object,
606 GlobalObject* holder, 606 GlobalObject* holder,
607 JSGlobalPropertyCell* cell, 607 JSGlobalPropertyCell* cell,
608 String* name, 608 String* name,
(...skipping 12 matching lines...) Expand all
621 int index); 621 int index);
622 622
623 MUST_USE_RESULT MaybeObject* CompileLoadCallback(String* name, 623 MUST_USE_RESULT MaybeObject* CompileLoadCallback(String* name,
624 JSObject* object, 624 JSObject* object,
625 JSObject* holder, 625 JSObject* holder,
626 AccessorInfo* callback); 626 AccessorInfo* callback);
627 627
628 MUST_USE_RESULT MaybeObject* CompileLoadConstant(String* name, 628 MUST_USE_RESULT MaybeObject* CompileLoadConstant(String* name,
629 JSObject* object, 629 JSObject* object,
630 JSObject* holder, 630 JSObject* holder,
631 Object* value); 631 JSFunction* value);
632 632
633 MUST_USE_RESULT MaybeObject* CompileLoadInterceptor(JSObject* object, 633 MUST_USE_RESULT MaybeObject* CompileLoadInterceptor(JSObject* object,
634 JSObject* holder, 634 JSObject* holder,
635 String* name); 635 String* name);
636 636
637 MUST_USE_RESULT MaybeObject* CompileLoadArrayLength(String* name); 637 MUST_USE_RESULT MaybeObject* CompileLoadArrayLength(String* name);
638 MUST_USE_RESULT MaybeObject* CompileLoadStringLength(String* name); 638 MUST_USE_RESULT MaybeObject* CompileLoadStringLength(String* name);
639 MUST_USE_RESULT MaybeObject* CompileLoadFunctionPrototype(String* name); 639 MUST_USE_RESULT MaybeObject* CompileLoadFunctionPrototype(String* name);
640 640
641 MUST_USE_RESULT MaybeObject* CompileLoadElement(Map* receiver_map); 641 MUST_USE_RESULT MaybeObject* CompileLoadElement(Map* receiver_map);
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 JSFunction* constant_function_; 887 JSFunction* constant_function_;
888 bool is_simple_api_call_; 888 bool is_simple_api_call_;
889 FunctionTemplateInfo* expected_receiver_type_; 889 FunctionTemplateInfo* expected_receiver_type_;
890 CallHandlerInfo* api_call_info_; 890 CallHandlerInfo* api_call_info_;
891 }; 891 };
892 892
893 893
894 } } // namespace v8::internal 894 } } // namespace v8::internal
895 895
896 #endif // V8_STUB_CACHE_H_ 896 #endif // V8_STUB_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698