OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdint.h> | 5 #include <stdint.h> |
6 #include "src/base/build_config.h" | 6 #include "src/base/build_config.h" |
7 #include "src/base/platform/platform.h" | 7 #include "src/base/platform/platform.h" |
8 #include "test/cctest/cctest.h" | 8 #include "test/cctest/cctest.h" |
9 | 9 |
10 #ifdef V8_CC_GNU | 10 #ifdef V8_CC_GNU |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 CompileRun( | 49 CompileRun( |
50 "function foo() {" | 50 "function foo() {" |
51 " return get_stack_pointer();" | 51 " return get_stack_pointer();" |
52 "}"); | 52 "}"); |
53 | 53 |
54 v8::Local<v8::Object> global_object = env->Global(); | 54 v8::Local<v8::Object> global_object = env->Global(); |
55 v8::Local<v8::Function> foo = | 55 v8::Local<v8::Function> foo = |
56 v8::Local<v8::Function>::Cast(global_object->Get(v8_str("foo"))); | 56 v8::Local<v8::Function>::Cast(global_object->Get(v8_str("foo"))); |
57 | 57 |
58 v8::Local<v8::Value> result = foo->Call(global_object, 0, NULL); | 58 v8::Local<v8::Value> result = foo->Call(global_object, 0, NULL); |
59 CHECK_EQ(0, result->Uint32Value() % v8::base::OS::ActivationFrameAlignment()); | 59 CHECK_EQ(0u, |
| 60 result->Uint32Value() % v8::base::OS::ActivationFrameAlignment()); |
60 } | 61 } |
61 | 62 |
62 #endif // V8_CC_GNU | 63 #endif // V8_CC_GNU |
OLD | NEW |