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

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

Issue 12330012: ES6 symbols: Allow symbols as property names (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Platform ports Created 7 years, 9 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/ic-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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 414
415 // Check if the object in register heap_object is a string. Afterwards the 415 // Check if the object in register heap_object is a string. Afterwards the
416 // register map contains the object map and the register instance_type 416 // register map contains the object map and the register instance_type
417 // contains the instance_type. The registers map and instance_type can be the 417 // contains the instance_type. The registers map and instance_type can be the
418 // same in which case it contains the instance type afterwards. Either of the 418 // same in which case it contains the instance type afterwards. Either of the
419 // registers map and instance_type can be the same as heap_object. 419 // registers map and instance_type can be the same as heap_object.
420 Condition IsObjectStringType(Register heap_object, 420 Condition IsObjectStringType(Register heap_object,
421 Register map, 421 Register map,
422 Register instance_type); 422 Register instance_type);
423 423
424 // Check if the object in register heap_object is a name. Afterwards the
425 // register map contains the object map and the register instance_type
426 // contains the instance_type. The registers map and instance_type can be the
427 // same in which case it contains the instance type afterwards. Either of the
428 // registers map and instance_type can be the same as heap_object.
429 Condition IsObjectNameType(Register heap_object,
430 Register map,
431 Register instance_type);
432
424 // Check if a heap object's type is in the JSObject range, not including 433 // Check if a heap object's type is in the JSObject range, not including
425 // JSFunction. The object's map will be loaded in the map register. 434 // JSFunction. The object's map will be loaded in the map register.
426 // Any or all of the three registers may be the same. 435 // Any or all of the three registers may be the same.
427 // The contents of the scratch register will always be overwritten. 436 // The contents of the scratch register will always be overwritten.
428 void IsObjectJSObjectType(Register heap_object, 437 void IsObjectJSObjectType(Register heap_object,
429 Register map, 438 Register map,
430 Register scratch, 439 Register scratch,
431 Label* fail); 440 Label* fail);
432 441
433 // The contents of the scratch register will be overwritten. 442 // The contents of the scratch register will be overwritten.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 513
505 // Abort execution if argument is not a smi, enabled via --debug-code. 514 // Abort execution if argument is not a smi, enabled via --debug-code.
506 void AssertSmi(Register object); 515 void AssertSmi(Register object);
507 516
508 // Abort execution if argument is a smi, enabled via --debug-code. 517 // Abort execution if argument is a smi, enabled via --debug-code.
509 void AssertNotSmi(Register object); 518 void AssertNotSmi(Register object);
510 519
511 // Abort execution if argument is not a string, enabled via --debug-code. 520 // Abort execution if argument is not a string, enabled via --debug-code.
512 void AssertString(Register object); 521 void AssertString(Register object);
513 522
523 // Abort execution if argument is not a name, enabled via --debug-code.
524 void AssertName(Register object);
525
514 // --------------------------------------------------------------------------- 526 // ---------------------------------------------------------------------------
515 // Exception handling 527 // Exception handling
516 528
517 // Push a new try handler and link it into try handler chain. 529 // Push a new try handler and link it into try handler chain.
518 void PushTryHandler(StackHandler::Kind kind, int handler_index); 530 void PushTryHandler(StackHandler::Kind kind, int handler_index);
519 531
520 // Unlink the stack handler on top of the stack from the try handler chain. 532 // Unlink the stack handler on top of the stack from the try handler chain.
521 void PopTryHandler(); 533 void PopTryHandler();
522 534
523 // Throw to the top handler in the try hander chain. 535 // Throw to the top handler in the try hander chain.
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 } \ 1016 } \
1005 masm-> 1017 masm->
1006 #else 1018 #else
1007 #define ACCESS_MASM(masm) masm-> 1019 #define ACCESS_MASM(masm) masm->
1008 #endif 1020 #endif
1009 1021
1010 1022
1011 } } // namespace v8::internal 1023 } } // namespace v8::internal
1012 1024
1013 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1025 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698