OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1901 __ cmp(r1, Operand(FIRST_JS_OBJECT_TYPE)); | 1901 __ cmp(r1, Operand(FIRST_JS_OBJECT_TYPE)); |
1902 __ b(lt, if_false); | 1902 __ b(lt, if_false); |
1903 __ cmp(r1, Operand(LAST_JS_OBJECT_TYPE)); | 1903 __ cmp(r1, Operand(LAST_JS_OBJECT_TYPE)); |
1904 __ b(le, if_true); | 1904 __ b(le, if_true); |
1905 __ b(if_false); | 1905 __ b(if_false); |
1906 | 1906 |
1907 Apply(context_, if_true, if_false); | 1907 Apply(context_, if_true, if_false); |
1908 } | 1908 } |
1909 | 1909 |
1910 | 1910 |
| 1911 void FullCodeGenerator::EmitIsSpecObject(ZoneList<Expression*>* args) { |
| 1912 ASSERT(args->length() == 1); |
| 1913 |
| 1914 VisitForValue(args->at(0), kAccumulator); |
| 1915 |
| 1916 Label materialize_true, materialize_false; |
| 1917 Label* if_true = NULL; |
| 1918 Label* if_false = NULL; |
| 1919 PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false); |
| 1920 |
| 1921 __ BranchOnSmi(r0, if_false); |
| 1922 __ CompareObjectType(r0, r1, r1, FIRST_JS_OBJECT_TYPE); |
| 1923 __ b(ge, if_true); |
| 1924 __ b(if_false); |
| 1925 |
| 1926 Apply(context_, if_true, if_false); |
| 1927 } |
| 1928 |
| 1929 |
1911 void FullCodeGenerator::EmitIsUndetectableObject(ZoneList<Expression*>* args) { | 1930 void FullCodeGenerator::EmitIsUndetectableObject(ZoneList<Expression*>* args) { |
1912 ASSERT(args->length() == 1); | 1931 ASSERT(args->length() == 1); |
1913 | 1932 |
1914 VisitForValue(args->at(0), kAccumulator); | 1933 VisitForValue(args->at(0), kAccumulator); |
1915 | 1934 |
1916 Label materialize_true, materialize_false; | 1935 Label materialize_true, materialize_false; |
1917 Label* if_true = NULL; | 1936 Label* if_true = NULL; |
1918 Label* if_false = NULL; | 1937 Label* if_false = NULL; |
1919 PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false); | 1938 PrepareTest(&materialize_true, &materialize_false, &if_true, &if_false); |
1920 | 1939 |
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3150 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 3169 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
3151 __ add(pc, r1, Operand(masm_->CodeObject())); | 3170 __ add(pc, r1, Operand(masm_->CodeObject())); |
3152 } | 3171 } |
3153 | 3172 |
3154 | 3173 |
3155 #undef __ | 3174 #undef __ |
3156 | 3175 |
3157 } } // namespace v8::internal | 3176 } } // namespace v8::internal |
3158 | 3177 |
3159 #endif // V8_TARGET_ARCH_ARM | 3178 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |