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

Side by Side Diff: src/objects.h

Issue 106453003: Allocation site support for monomorphic StringAdds in BinaryOps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix NewStringAddStub flags bits. Created 7 years 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 // 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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 V(kDestinationOfCopyNotAligned, "Destination of copy not aligned") \ 1099 V(kDestinationOfCopyNotAligned, "Destination of copy not aligned") \
1100 V(kDontDeleteCellsCannotContainTheHole, \ 1100 V(kDontDeleteCellsCannotContainTheHole, \
1101 "DontDelete cells can't contain the hole") \ 1101 "DontDelete cells can't contain the hole") \
1102 V(kDoPushArgumentNotImplementedForDoubleType, \ 1102 V(kDoPushArgumentNotImplementedForDoubleType, \
1103 "DoPushArgument not implemented for double type") \ 1103 "DoPushArgument not implemented for double type") \
1104 V(kEmitLoadRegisterUnsupportedDoubleImmediate, \ 1104 V(kEmitLoadRegisterUnsupportedDoubleImmediate, \
1105 "EmitLoadRegister: Unsupported double immediate") \ 1105 "EmitLoadRegister: Unsupported double immediate") \
1106 V(kEval, "eval") \ 1106 V(kEval, "eval") \
1107 V(kExpected0AsASmiSentinel, "Expected 0 as a Smi sentinel") \ 1107 V(kExpected0AsASmiSentinel, "Expected 0 as a Smi sentinel") \
1108 V(kExpectedAlignmentMarker, "expected alignment marker") \ 1108 V(kExpectedAlignmentMarker, "expected alignment marker") \
1109 V(kExpectedAllocationSite, "expected allocation site") \
1109 V(kExpectedAllocationSiteInCell, \ 1110 V(kExpectedAllocationSiteInCell, \
1110 "Expected AllocationSite in property cell") \ 1111 "Expected AllocationSite in property cell") \
1111 V(kExpectedPropertyCellInRegisterA2, \ 1112 V(kExpectedPropertyCellInRegisterA2, \
1112 "Expected property cell in register a2") \ 1113 "Expected property cell in register a2") \
1113 V(kExpectedPropertyCellInRegisterEbx, \ 1114 V(kExpectedPropertyCellInRegisterEbx, \
1114 "Expected property cell in register ebx") \ 1115 "Expected property cell in register ebx") \
1115 V(kExpectedPropertyCellInRegisterRbx, \ 1116 V(kExpectedPropertyCellInRegisterRbx, \
1116 "Expected property cell in register rbx") \ 1117 "Expected property cell in register rbx") \
1117 V(kExpectingAlignmentForCopyBytes, \ 1118 V(kExpectingAlignmentForCopyBytes, \
1118 "Expecting alignment for CopyBytes") \ 1119 "Expecting alignment for CopyBytes") \
(...skipping 4108 matching lines...) Expand 10 before | Expand all | Expand 10 after
5227 inline bool marked_for_deoptimization(); 5228 inline bool marked_for_deoptimization();
5228 inline void set_marked_for_deoptimization(bool flag); 5229 inline void set_marked_for_deoptimization(bool flag);
5229 5230
5230 // Get the safepoint entry for the given pc. 5231 // Get the safepoint entry for the given pc.
5231 SafepointEntry GetSafepointEntry(Address pc); 5232 SafepointEntry GetSafepointEntry(Address pc);
5232 5233
5233 // Find an object in a stub with a specified map 5234 // Find an object in a stub with a specified map
5234 Object* FindNthObject(int n, Map* match_map); 5235 Object* FindNthObject(int n, Map* match_map);
5235 void ReplaceNthObject(int n, Map* match_map, Object* replace_with); 5236 void ReplaceNthObject(int n, Map* match_map, Object* replace_with);
5236 5237
5238 // Find the first allocation site in an IC stub.
5239 AllocationSite* FindFirstAllocationSite();
5240
5237 // Find the first map in an IC stub. 5241 // Find the first map in an IC stub.
5238 Map* FindFirstMap(); 5242 Map* FindFirstMap();
5239 void FindAllMaps(MapHandleList* maps); 5243 void FindAllMaps(MapHandleList* maps);
5240 void FindAllTypes(TypeHandleList* types); 5244 void FindAllTypes(TypeHandleList* types);
5241 void ReplaceFirstMap(Map* replace); 5245 void ReplaceFirstMap(Map* replace);
5242 5246
5243 // Find the first handler in an IC stub. 5247 // Find the first handler in an IC stub.
5244 Code* FindFirstHandler(); 5248 Code* FindFirstHandler();
5245 5249
5246 // Find |length| handlers and put them into |code_list|. Returns false if not 5250 // Find |length| handlers and put them into |code_list|. Returns false if not
(...skipping 5359 matching lines...) Expand 10 before | Expand all | Expand 10 after
10606 } else { 10610 } else {
10607 value &= ~(1 << bit_position); 10611 value &= ~(1 << bit_position);
10608 } 10612 }
10609 return value; 10613 return value;
10610 } 10614 }
10611 }; 10615 };
10612 10616
10613 } } // namespace v8::internal 10617 } } // namespace v8::internal
10614 10618
10615 #endif // V8_OBJECTS_H_ 10619 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698