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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 9015020: Make sure transitioned arrays efficiently call builtin Array functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: merge with latest Created 8 years, 11 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 | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // FastDoubleElements. If it can, store it at the index specified by key in 349 // FastDoubleElements. If it can, store it at the index specified by key in
350 // the FastDoubleElements array elements, otherwise jump to fail. 350 // the FastDoubleElements array elements, otherwise jump to fail.
351 void StoreNumberToDoubleElements(Register maybe_number, 351 void StoreNumberToDoubleElements(Register maybe_number,
352 Register elements, 352 Register elements,
353 Register key, 353 Register key,
354 Register scratch1, 354 Register scratch1,
355 XMMRegister scratch2, 355 XMMRegister scratch2,
356 Label* fail, 356 Label* fail,
357 bool specialize_for_processor); 357 bool specialize_for_processor);
358 358
359 // Compare an object's map with the specified map and its transitioned
360 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. FLAGS are set with
361 // result of map compare. If multiple map compares are required, the compare
362 // sequences branches to early_success.
363 void CompareMap(Register obj,
364 Handle<Map> map,
365 Label* early_success,
366 CompareMapMode mode = REQUIRE_EXACT_MAP);
367
359 // Check if the map of an object is equal to a specified map and branch to 368 // Check if the map of an object is equal to a specified map and branch to
360 // label if not. Skip the smi check if not required (object is known to be a 369 // label if not. Skip the smi check if not required (object is known to be a
361 // heap object) 370 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match
371 // against maps that are ElementsKind transition maps of the specificed map.
362 void CheckMap(Register obj, 372 void CheckMap(Register obj,
363 Handle<Map> map, 373 Handle<Map> map,
364 Label* fail, 374 Label* fail,
365 SmiCheckType smi_check_type); 375 SmiCheckType smi_check_type,
376 CompareMapMode mode = REQUIRE_EXACT_MAP);
366 377
367 // Check if the map of an object is equal to a specified map and branch to a 378 // Check if the map of an object is equal to a specified map and branch to a
368 // specified target if equal. Skip the smi check if not required (object is 379 // specified target if equal. Skip the smi check if not required (object is
369 // known to be a heap object) 380 // known to be a heap object)
370 void DispatchMap(Register obj, 381 void DispatchMap(Register obj,
371 Handle<Map> map, 382 Handle<Map> map,
372 Handle<Code> success, 383 Handle<Code> success,
373 SmiCheckType smi_check_type); 384 SmiCheckType smi_check_type);
374 385
375 // Check if the object in register heap_object is a string. Afterwards the 386 // Check if the object in register heap_object is a string. Afterwards the
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 } \ 948 } \
938 masm-> 949 masm->
939 #else 950 #else
940 #define ACCESS_MASM(masm) masm-> 951 #define ACCESS_MASM(masm) masm->
941 #endif 952 #endif
942 953
943 954
944 } } // namespace v8::internal 955 } } // namespace v8::internal
945 956
946 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 957 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698