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

Side by Side Diff: src/macros.py

Issue 19678023: ES6: Implement WeakSet (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reitveld is acting up Created 7 years, 5 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
OLDNEW
1 # Copyright 2006-2009 the V8 project authors. All rights reserved. 1 # Copyright 2006-2009 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 macro IS_STRING(arg) = (typeof(arg) === 'string'); 100 macro IS_STRING(arg) = (typeof(arg) === 'string');
101 macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean'); 101 macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean');
102 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol'); 102 macro IS_SYMBOL(arg) = (typeof(arg) === 'symbol');
103 macro IS_OBJECT(arg) = (%_IsObject(arg)); 103 macro IS_OBJECT(arg) = (%_IsObject(arg));
104 macro IS_ARRAY(arg) = (%_IsArray(arg)); 104 macro IS_ARRAY(arg) = (%_IsArray(arg));
105 macro IS_FUNCTION(arg) = (%_IsFunction(arg)); 105 macro IS_FUNCTION(arg) = (%_IsFunction(arg));
106 macro IS_REGEXP(arg) = (%_IsRegExp(arg)); 106 macro IS_REGEXP(arg) = (%_IsRegExp(arg));
107 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set'); 107 macro IS_SET(arg) = (%_ClassOf(arg) === 'Set');
108 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map'); 108 macro IS_MAP(arg) = (%_ClassOf(arg) === 'Map');
109 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap'); 109 macro IS_WEAKMAP(arg) = (%_ClassOf(arg) === 'WeakMap');
110 macro IS_WEAKSET(arg) = (%_ClassOf(arg) === 'WeakSet');
110 macro IS_DATE(arg) = (%_ClassOf(arg) === 'Date'); 111 macro IS_DATE(arg) = (%_ClassOf(arg) === 'Date');
111 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number'); 112 macro IS_NUMBER_WRAPPER(arg) = (%_ClassOf(arg) === 'Number');
112 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String'); 113 macro IS_STRING_WRAPPER(arg) = (%_ClassOf(arg) === 'String');
113 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol'); 114 macro IS_SYMBOL_WRAPPER(arg) = (%_ClassOf(arg) === 'Symbol');
114 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean'); 115 macro IS_BOOLEAN_WRAPPER(arg) = (%_ClassOf(arg) === 'Boolean');
115 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error'); 116 macro IS_ERROR(arg) = (%_ClassOf(arg) === 'Error');
116 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script'); 117 macro IS_SCRIPT(arg) = (%_ClassOf(arg) === 'Script');
117 macro IS_ARGUMENTS(arg) = (%_ClassOf(arg) === 'Arguments'); 118 macro IS_ARGUMENTS(arg) = (%_ClassOf(arg) === 'Arguments');
118 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global'); 119 macro IS_GLOBAL(arg) = (%_ClassOf(arg) === 'global');
119 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer'); 120 macro IS_ARRAYBUFFER(arg) = (%_ClassOf(arg) === 'ArrayBuffer');
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 const TYPE_EXTENSION = 1; 239 const TYPE_EXTENSION = 1;
239 const TYPE_NORMAL = 2; 240 const TYPE_NORMAL = 2;
240 241
241 # Matches Script::CompilationType from objects.h 242 # Matches Script::CompilationType from objects.h
242 const COMPILATION_TYPE_HOST = 0; 243 const COMPILATION_TYPE_HOST = 0;
243 const COMPILATION_TYPE_EVAL = 1; 244 const COMPILATION_TYPE_EVAL = 1;
244 const COMPILATION_TYPE_JSON = 2; 245 const COMPILATION_TYPE_JSON = 2;
245 246
246 # Matches Messages::kNoLineNumberInfo from v8.h 247 # Matches Messages::kNoLineNumberInfo from v8.h
247 const kNoLineNumberInfo = 0; 248 const kNoLineNumberInfo = 0;
OLDNEW
« no previous file with comments | « src/incremental-marking.cc ('k') | src/mark-compact.h » ('j') | src/objects-printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698