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

Side by Side Diff: src/hydrogen.h

Issue 21505002: Fixed Typefeedback for Number Truncation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')
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 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 ElementsKind elements_kind, 1253 ElementsKind elements_kind,
1254 bool is_store, 1254 bool is_store,
1255 LoadKeyedHoleMode load_mode, 1255 LoadKeyedHoleMode load_mode,
1256 KeyedAccessStoreMode store_mode); 1256 KeyedAccessStoreMode store_mode);
1257 1257
1258 HLoadNamedField* BuildLoadNamedField( 1258 HLoadNamedField* BuildLoadNamedField(
1259 HValue* object, 1259 HValue* object,
1260 HObjectAccess access, 1260 HObjectAccess access,
1261 HValue* typecheck = NULL); 1261 HValue* typecheck = NULL);
1262 HInstruction* BuildLoadStringLength(HValue* object, HValue* typecheck = NULL); 1262 HInstruction* BuildLoadStringLength(HValue* object, HValue* typecheck = NULL);
1263
1264 bool MatchRotateRight(HValue* left,
1265 HValue* right,
1266 HValue** operand,
1267 HValue** shift_amount);
1268
1269 HInstruction* BuildBinaryOperation(Token::Value op,
1270 HValue* left,
1271 HValue* right,
1272 Handle<Type> left_type,
1273 Handle<Type> right_type,
1274 Handle<Type> result_type,
1275 Maybe<int> fixed_right_arg,
1276 HValue* context);
1277
1263 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); 1278 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>);
1264 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); 1279 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL);
1265 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); 1280 HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
1266 1281
1267 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); 1282 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin);
1268 1283
1269 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected); 1284 HValue* TruncateToNumber(HValue* value, Handle<Type>* expected);
1270 1285
1271 void PushAndAdd(HInstruction* instr); 1286 void PushAndAdd(HInstruction* instr);
1272 1287
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
2141 HInstruction* data_target, 2156 HInstruction* data_target,
2142 int* data_offset); 2157 int* data_offset);
2143 2158
2144 void AddCheckPrototypeMaps(Handle<JSObject> holder, 2159 void AddCheckPrototypeMaps(Handle<JSObject> holder,
2145 Handle<Map> receiver_map); 2160 Handle<Map> receiver_map);
2146 2161
2147 void AddCheckConstantFunction(Handle<JSObject> holder, 2162 void AddCheckConstantFunction(Handle<JSObject> holder,
2148 HValue* receiver, 2163 HValue* receiver,
2149 Handle<Map> receiver_map); 2164 Handle<Map> receiver_map);
2150 2165
2151 bool MatchRotateRight(HValue* left,
2152 HValue* right,
2153 HValue** operand,
2154 HValue** shift_amount);
2155
2156 // The translation state of the currently-being-translated function. 2166 // The translation state of the currently-being-translated function.
2157 FunctionState* function_state_; 2167 FunctionState* function_state_;
2158 2168
2159 // The base of the function state stack. 2169 // The base of the function state stack.
2160 FunctionState initial_function_state_; 2170 FunctionState initial_function_state_;
2161 2171
2162 // Expression context of the currently visited subexpression. NULL when 2172 // Expression context of the currently visited subexpression. NULL when
2163 // visiting statements. 2173 // visiting statements.
2164 AstContext* ast_context_; 2174 AstContext* ast_context_;
2165 2175
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 EmbeddedVector<char, 64> filename_; 2336 EmbeddedVector<char, 64> filename_;
2327 HeapStringAllocator string_allocator_; 2337 HeapStringAllocator string_allocator_;
2328 StringStream trace_; 2338 StringStream trace_;
2329 int indent_; 2339 int indent_;
2330 }; 2340 };
2331 2341
2332 2342
2333 } } // namespace v8::internal 2343 } } // namespace v8::internal
2334 2344
2335 #endif // V8_HYDROGEN_H_ 2345 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698