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

Side by Side Diff: src/hydrogen.h

Issue 102563004: Zonify types in compiler frontend (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased 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
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 HValue* elements, 1279 HValue* elements,
1280 ElementsKind kind, 1280 ElementsKind kind,
1281 HValue* length); 1281 HValue* length);
1282 1282
1283 void BuildTransitionElementsKind(HValue* object, 1283 void BuildTransitionElementsKind(HValue* object,
1284 HValue* map, 1284 HValue* map,
1285 ElementsKind from_kind, 1285 ElementsKind from_kind,
1286 ElementsKind to_kind, 1286 ElementsKind to_kind,
1287 bool is_jsarray); 1287 bool is_jsarray);
1288 1288
1289 HValue* BuildNumberToString(HValue* object, Handle<Type> type); 1289 HValue* BuildNumberToString(HValue* object, Type* type);
1290 1290
1291 HValue* BuildUncheckedDictionaryElementLoad(HValue* receiver, 1291 HValue* BuildUncheckedDictionaryElementLoad(HValue* receiver,
1292 HValue* key); 1292 HValue* key);
1293 1293
1294 // Computes the size for a sequential string of the given length and encoding. 1294 // Computes the size for a sequential string of the given length and encoding.
1295 HValue* BuildSeqStringSizeFor(HValue* length, 1295 HValue* BuildSeqStringSizeFor(HValue* length,
1296 String::Encoding encoding); 1296 String::Encoding encoding);
1297 // Copies characters from one sequential string to another. 1297 // Copies characters from one sequential string to another.
1298 void BuildCopySeqStringChars(HValue* src, 1298 void BuildCopySeqStringChars(HValue* src,
1299 HValue* src_offset, 1299 HValue* src_offset,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 HLoadNamedField* AddLoadElements(HValue* object); 1343 HLoadNamedField* AddLoadElements(HValue* object);
1344 1344
1345 bool MatchRotateRight(HValue* left, 1345 bool MatchRotateRight(HValue* left,
1346 HValue* right, 1346 HValue* right,
1347 HValue** operand, 1347 HValue** operand,
1348 HValue** shift_amount); 1348 HValue** shift_amount);
1349 1349
1350 HValue* BuildBinaryOperation(Token::Value op, 1350 HValue* BuildBinaryOperation(Token::Value op,
1351 HValue* left, 1351 HValue* left,
1352 HValue* right, 1352 HValue* right,
1353 Handle<Type> left_type, 1353 Type* left_type,
1354 Handle<Type> right_type, 1354 Type* right_type,
1355 Handle<Type> result_type, 1355 Type* result_type,
1356 Maybe<int> fixed_right_arg); 1356 Maybe<int> fixed_right_arg);
1357 1357
1358 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); 1358 HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
1359 1359
1360 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); 1360 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin);
1361 1361
1362 HValue* EnforceNumberType(HValue* number, Handle<Type> expected); 1362 HValue* EnforceNumberType(HValue* number, Type* expected);
1363 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); 1363 HValue* TruncateToNumber(HValue* value, Type** expected);
1364 1364
1365 void FinishExitWithHardDeoptimization(const char* reason, 1365 void FinishExitWithHardDeoptimization(const char* reason,
1366 HBasicBlock* continuation); 1366 HBasicBlock* continuation);
1367 1367
1368 void AddIncrementCounter(StatsCounter* counter); 1368 void AddIncrementCounter(StatsCounter* counter);
1369 1369
1370 class IfBuilder V8_FINAL { 1370 class IfBuilder V8_FINAL {
1371 public: 1371 public:
1372 explicit IfBuilder(HGraphBuilder* builder); 1372 explicit IfBuilder(HGraphBuilder* builder);
1373 IfBuilder(HGraphBuilder* builder, 1373 IfBuilder(HGraphBuilder* builder,
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 HValue* BuildCloneShallowArray(HValue* boilerplate, 1709 HValue* BuildCloneShallowArray(HValue* boilerplate,
1710 HValue* allocation_site, 1710 HValue* allocation_site,
1711 AllocationSiteMode mode, 1711 AllocationSiteMode mode,
1712 ElementsKind kind, 1712 ElementsKind kind,
1713 int length); 1713 int length);
1714 1714
1715 HValue* BuildElementIndexHash(HValue* index); 1715 HValue* BuildElementIndexHash(HValue* index);
1716 1716
1717 void BuildCompareNil( 1717 void BuildCompareNil(
1718 HValue* value, 1718 HValue* value,
1719 Handle<Type> type, 1719 Type* type,
1720 HIfContinuation* continuation); 1720 HIfContinuation* continuation);
1721 1721
1722 void BuildCreateAllocationMemento(HValue* previous_object, 1722 void BuildCreateAllocationMemento(HValue* previous_object,
1723 HValue* previous_object_size, 1723 HValue* previous_object_size,
1724 HValue* payload); 1724 HValue* payload);
1725 1725
1726 HInstruction* BuildConstantMapCheck(Handle<JSObject> constant, 1726 HInstruction* BuildConstantMapCheck(Handle<JSObject> constant,
1727 CompilationInfo* info); 1727 CompilationInfo* info);
1728 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype, 1728 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype,
1729 Handle<JSObject> holder); 1729 Handle<JSObject> holder);
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 Handle<String> name); 2320 Handle<String> name);
2321 void HandleLiteralCompareTypeof(CompareOperation* expr, 2321 void HandleLiteralCompareTypeof(CompareOperation* expr,
2322 Expression* sub_expr, 2322 Expression* sub_expr,
2323 Handle<String> check); 2323 Handle<String> check);
2324 void HandleLiteralCompareNil(CompareOperation* expr, 2324 void HandleLiteralCompareNil(CompareOperation* expr,
2325 Expression* sub_expr, 2325 Expression* sub_expr,
2326 NilValue nil); 2326 NilValue nil);
2327 HControlInstruction* BuildCompareInstruction(Token::Value op, 2327 HControlInstruction* BuildCompareInstruction(Token::Value op,
2328 HValue* left, 2328 HValue* left,
2329 HValue* right, 2329 HValue* right,
2330 Handle<Type> left_type, 2330 Type* left_type,
2331 Handle<Type> right_type, 2331 Type* right_type,
2332 Handle<Type> combined_type, 2332 Type* combined_type,
2333 int left_position, 2333 int left_position,
2334 int right_position, 2334 int right_position,
2335 BailoutId bailout_id); 2335 BailoutId bailout_id);
2336 2336
2337 HInstruction* BuildStringCharCodeAt(HValue* string, 2337 HInstruction* BuildStringCharCodeAt(HValue* string,
2338 HValue* index); 2338 HValue* index);
2339 HValue* BuildBinaryOperation(BinaryOperation* expr, 2339 HValue* BuildBinaryOperation(BinaryOperation* expr,
2340 HValue* left, 2340 HValue* left,
2341 HValue* right); 2341 HValue* right);
2342 HInstruction* BuildIncrement(bool returns_original_input, 2342 HInstruction* BuildIncrement(bool returns_original_input,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
2640 } 2640 }
2641 2641
2642 private: 2642 private:
2643 HGraphBuilder* builder_; 2643 HGraphBuilder* builder_;
2644 }; 2644 };
2645 2645
2646 2646
2647 } } // namespace v8::internal 2647 } } // namespace v8::internal
2648 2648
2649 #endif // V8_HYDROGEN_H_ 2649 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698