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

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

Issue 13923003: Always require exact maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 Label* fail, 386 Label* fail,
387 bool specialize_for_processor, 387 bool specialize_for_processor,
388 int offset = 0); 388 int offset = 0);
389 389
390 // Compare an object's map with the specified map and its transitioned 390 // Compare an object's map with the specified map and its transitioned
391 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. FLAGS are set with 391 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. FLAGS are set with
392 // result of map compare. If multiple map compares are required, the compare 392 // result of map compare. If multiple map compares are required, the compare
393 // sequences branches to early_success. 393 // sequences branches to early_success.
394 void CompareMap(Register obj, 394 void CompareMap(Register obj,
395 Handle<Map> map, 395 Handle<Map> map,
396 Label* early_success, 396 Label* early_success);
397 CompareMapMode mode = REQUIRE_EXACT_MAP);
398 397
399 // Check if the map of an object is equal to a specified map and branch to 398 // Check if the map of an object is equal to a specified map and branch to
400 // label if not. Skip the smi check if not required (object is known to be a 399 // label if not. Skip the smi check if not required (object is known to be a
401 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match 400 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match
402 // against maps that are ElementsKind transition maps of the specified map. 401 // against maps that are ElementsKind transition maps of the specified map.
403 void CheckMap(Register obj, 402 void CheckMap(Register obj,
404 Handle<Map> map, 403 Handle<Map> map,
405 Label* fail, 404 Label* fail,
406 SmiCheckType smi_check_type, 405 SmiCheckType smi_check_type);
407 CompareMapMode mode = REQUIRE_EXACT_MAP);
408 406
409 // Check if the map of an object is equal to a specified map and branch to a 407 // Check if the map of an object is equal to a specified map and branch to a
410 // specified target if equal. Skip the smi check if not required (object is 408 // specified target if equal. Skip the smi check if not required (object is
411 // known to be a heap object) 409 // known to be a heap object)
412 void DispatchMap(Register obj, 410 void DispatchMap(Register obj,
413 Register unused, 411 Register unused,
414 Handle<Map> map, 412 Handle<Map> map,
415 Handle<Code> success, 413 Handle<Code> success,
416 SmiCheckType smi_check_type); 414 SmiCheckType smi_check_type);
417 415
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 } \ 1023 } \
1026 masm-> 1024 masm->
1027 #else 1025 #else
1028 #define ACCESS_MASM(masm) masm-> 1026 #define ACCESS_MASM(masm) masm->
1029 #endif 1027 #endif
1030 1028
1031 1029
1032 } } // namespace v8::internal 1030 } } // namespace v8::internal
1033 1031
1034 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1032 #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