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

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

Issue 59103005: Proper fix for the issue exposed by r17459 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix ALL the casting confusion Created 7 years, 1 month 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
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 static void GenerateLoadFunctionPrototype(MacroAssembler* masm, 478 static void GenerateLoadFunctionPrototype(MacroAssembler* masm,
479 Register receiver, 479 Register receiver,
480 Register scratch1, 480 Register scratch1,
481 Register scratch2, 481 Register scratch2,
482 Label* miss_label); 482 Label* miss_label);
483 483
484 // Generate code to check that a global property cell is empty. Create 484 // Generate code to check that a global property cell is empty. Create
485 // the property cell at compilation time if no cell exists for the 485 // the property cell at compilation time if no cell exists for the
486 // property. 486 // property.
487 static void GenerateCheckPropertyCell(MacroAssembler* masm, 487 static void GenerateCheckPropertyCell(MacroAssembler* masm,
488 Handle<GlobalObject> global, 488 Handle<JSGlobalObject> global,
489 Handle<Name> name, 489 Handle<Name> name,
490 Register scratch, 490 Register scratch,
491 Label* miss); 491 Label* miss);
492 492
493 // Calls GenerateCheckPropertyCell for each global object in the prototype 493 // Calls GenerateCheckPropertyCell for each global object in the prototype
494 // chain from object to (but not including) holder. 494 // chain from object to (but not including) holder.
495 static void GenerateCheckPropertyCells(MacroAssembler* masm, 495 static void GenerateCheckPropertyCells(MacroAssembler* masm,
496 Handle<JSObject> object, 496 Handle<JSObject> object,
497 Handle<JSObject> holder, 497 Handle<JSObject> holder,
498 Handle<Name> name, 498 Handle<Name> name,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 Handle<Name> name, 696 Handle<Name> name,
697 Handle<JSFunction> getter); 697 Handle<JSFunction> getter);
698 698
699 static void GenerateLoadViaGetter(MacroAssembler* masm, 699 static void GenerateLoadViaGetter(MacroAssembler* masm,
700 Register receiver, 700 Register receiver,
701 Handle<JSFunction> getter); 701 Handle<JSFunction> getter);
702 702
703 Handle<Code> CompileLoadNonexistent(Handle<JSObject> object, 703 Handle<Code> CompileLoadNonexistent(Handle<JSObject> object,
704 Handle<JSObject> last, 704 Handle<JSObject> last,
705 Handle<Name> name, 705 Handle<Name> name,
706 Handle<GlobalObject> global); 706 Handle<JSGlobalObject> global);
707 707
708 Handle<Code> CompileLoadGlobal(Handle<JSObject> object, 708 Handle<Code> CompileLoadGlobal(Handle<JSObject> object,
709 Handle<GlobalObject> holder, 709 Handle<GlobalObject> holder,
710 Handle<PropertyCell> cell, 710 Handle<PropertyCell> cell,
711 Handle<Name> name, 711 Handle<Name> name,
712 bool is_dont_delete); 712 bool is_dont_delete);
713 713
714 static Register* registers(); 714 static Register* registers();
715 715
716 protected: 716 protected:
(...skipping 10 matching lines...) Expand all
727 Register CallbackHandlerFrontend(Handle<JSObject> object, 727 Register CallbackHandlerFrontend(Handle<JSObject> object,
728 Register object_reg, 728 Register object_reg,
729 Handle<JSObject> holder, 729 Handle<JSObject> holder,
730 Handle<Name> name, 730 Handle<Name> name,
731 Label* success, 731 Label* success,
732 Handle<Object> callback); 732 Handle<Object> callback);
733 void NonexistentHandlerFrontend(Handle<JSObject> object, 733 void NonexistentHandlerFrontend(Handle<JSObject> object,
734 Handle<JSObject> last, 734 Handle<JSObject> last,
735 Handle<Name> name, 735 Handle<Name> name,
736 Label* success, 736 Label* success,
737 Handle<GlobalObject> global); 737 Handle<JSGlobalObject> global);
738 738
739 void GenerateLoadField(Register reg, 739 void GenerateLoadField(Register reg,
740 Handle<JSObject> holder, 740 Handle<JSObject> holder,
741 PropertyIndex field, 741 PropertyIndex field,
742 Representation representation); 742 Representation representation);
743 void GenerateLoadConstant(Handle<Object> value); 743 void GenerateLoadConstant(Handle<Object> value);
744 void GenerateLoadCallback(Register reg, 744 void GenerateLoadCallback(Register reg,
745 Handle<ExecutableAccessorInfo> callback); 745 Handle<ExecutableAccessorInfo> callback);
746 void GenerateLoadCallback(const CallOptimization& call_optimization); 746 void GenerateLoadCallback(const CallOptimization& call_optimization);
747 void GenerateLoadInterceptor(Register holder_reg, 747 void GenerateLoadInterceptor(Register holder_reg,
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 Handle<JSFunction> constant_function_; 1098 Handle<JSFunction> constant_function_;
1099 bool is_simple_api_call_; 1099 bool is_simple_api_call_;
1100 Handle<FunctionTemplateInfo> expected_receiver_type_; 1100 Handle<FunctionTemplateInfo> expected_receiver_type_;
1101 Handle<CallHandlerInfo> api_call_info_; 1101 Handle<CallHandlerInfo> api_call_info_;
1102 }; 1102 };
1103 1103
1104 1104
1105 } } // namespace v8::internal 1105 } } // namespace v8::internal
1106 1106
1107 #endif // V8_STUB_CACHE_H_ 1107 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698